Some useful commands for manipulating files so I don't have to search for these.
Count the number of files in a directory name
:
ls name | wc -l
Display top n
sorted filenames:
ls | head -n
Copy top n
sorted filenames from this directory into another called dest
:
cp `ls | head -n` dest