title: How to find if there are new files in a directory every 2 minutes in shell script?
body: <p>I have a directory called <code>/home/user/local</code>. Every two minutes or so, a new file is dumped into this directory. I need to check this directory every 2 minutes to see if a new file/files have landed in there. And if there are new files, I need to put a list of it into a variable to use later on. How do I do this shell script? </p>