(Please do not email me directly with follow-ups on posts that were sent to a mailing list. This is copied back to the list.)
On Mon, Jan 10, 2011 at 5:05 PM, Amit Sharma <[email protected]> wrote: [...] > I am trying todo the following: > > Of all *.prn, DO NOT MOVE the files which are OPEN. Move all other *.prn to > the specified directory. Maybe my wording was not clear. The script does exactly that: Move a given file to a given directory, if the file is not open. Wrapping it in a "find" that finds all the files that you want to find should be trivial, something like: find <top_dir> -name '*.prn' | xargs -I '{}' ./move.sh '{}' <backup_dir> I would recommend putting the entire command in a script, and calling that script from cron. Regards, Gora _______________________________________________ Ilugd mailing list [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd
