How do you move all the files (excluding sub-directories) from one directory to another. I'd prefer if the solution used just basic shell scripting.
How to move all files (excluding sub-directories) from one directory to another?
shell script;files;move
The easy way:for f in /some/path/*; do    if [ -f $f ]; then        mv $f /some/other/path    fidoneThe slightly more complicated way:find /some/path -mindepth 1 -maxdepth 1 -type f -exec mv {} /dome/other/path \;