UNIX shell script to read files, copy files and delete files <p>Hi I am writing a shell script in UNIX which reads a directory and copies the files in to another directory and then deletes the files in the first directory</p> <p>I have tried this but it does not work:-</p> <pre><code>files"=/project/scripts/input/" for f in $files; do [ mv /project/scripts/input/$f.txt /project/scripts/output/$f.xml rm /project/scripts/input/$f.txt ] else echo "Nothing to process will try later" exit fi </code></pre>