I want to copy only files not folders from one folder to another in linux. I am using the following command
cp sourceDir/* destDir
The above command does copy all files to destDir
but the command does not stop processing. Any help would be much appreciated.
cp
command should not copy folders unless you add the-r
option