Hello,
I have to write a bash script to take XML files in directory x, copy them to directory y and then move the same set of files to directory z.
The script itself isn't a problem, except that there will be users uploading XML files into directory x constantly. So I need to in effect take a 'snapshot' of the files that are in there when the script is run.. copy them to y and then move them to z, ignoring any that are added between the time the cp is effected, and the mv.
I'm guessing that this involves doing a find, firing the result into a file, and then reading from that file, but this is something I've never done before.
Can someone advise? Oh, and no- this isn't a 'homework' exercise. It's for my work. Thanks.