Write php cli or bash script which will:
1.) Move all file types ".raw" to directory rawdir
2.) Add an interface with arguments that will allow you to set the "source directory" where the script searches for ".raw" files and "destination directories", where the files are moved to. If the user does not give arguments, the script should be executed with the default settings.
3.) The script should provide information to the user on the implementation of operations. In the end, it should give statistics with the number of files that were successfully processed.
4.) Using the "convert_to_text" program, convert all ".raw" files to ".csv" files. The printout format must be the same as the attached example in the "processed" directory. The file name should remain unchanged, only the suffix changes. The conversion results should copy the script to "processd_dir" located inside the "destination directory".
Hello there, This is basicly what I do all day long :). Command line PHP scripts like these. I can make this script for you fully tested, fully working. I can start right now if you want.