Useful batch scripts
# Script to get files nested in subdirs into one folder
find . -type f -name \*.jpg -exec cp \{\} $TARGETFOLDER \;
# Create a file containing the name of the files in a directory
Create a text file myTask/myTask.input listing the HTML files
created in Step 1:
$ cd target/myTask # cd to the directory that contains the files to be echoed.
$ echo urls >../../mechanicalTurk/myTask/myTask.input # destination folder
$ ls -1 >>../../mechanicalTurk/myTask/myTask.input # Append info