Simple Bash Script Help
I'm new to bash scripting and basically, I want to do the following and was wondering if someone could give me some pointers and show me the best way of doing it.
Basically, I want to poll a directory, let's call it /test and see if there are any files with the extension .dat, if there are any then I want them moved to another directory (/test2).
I want the script to loop until it finds these files, then move them and then once finished moving them, just carry on polling /test.
Any help with this would be greatly appreciated.
Thanks in advance.
It would take longer to explain than it would to just write the script:
|All times are GMT -5. The time now is 08:08 PM.|