Move/Copy first/last n files to subdirectory
# First n files $ find . -maxdepth 1 -type f |head -n|xargs cp -t "$destdir" # Last n files $ find . -mindepth 1 -type f |head -n|xargs cp -t "$destdir"