Print a file if it exists and rename it at the same time.
I would like to write a script to print files in a directory if they exist and then rename them at the same time. This script will of course loop forever because new files are created all the time and i don't want to keep printing them.
One option i did look at would be to mv the files right after they print but if new files are created before they are printed, the move command will move them before they print.
B
|