Copying
Revision 3 as of 2010-10-16 21:38:39
Clear message
To copy
- If many empty subdirectories and some has files then copy all files exept folders to other folder
cd /problemfolder/ find . -type f -print0 | xargs -I{} -0 cp {} ~/ForexampleDesktop/solutionfolder
or simplerfind problemfoldername -type f -exec cp {} solutionfolder/ \;
- To find all specific type files and copy them without folders to one folder use
find ~/FromPictures -name "*.jpg" -exec cp \{\} ~/ToAll_Pictures/ \;