I've bunch of folders in folder A. I want to move files from all those folders to A.
Or
I want to cut all files from child folders and paste them in parent folder.
How to do that?
|
Go to your which means "find all files in this directory and its sub-directories and execute mv with target directory . for each file found to move them to current directory. |
||||
|
Well you could create a file and name it "cutme" (to create a file called cutme in the terminal type
Note the name cutme inside the line. It should be the same as the script you will run. After creating the file and pasting the above line, run the following in the same folder as the script:
|
|||||
|
|
one simple way i did it was issuing three commands
Cheers newbie |
||||
|
|
mv */* .? – Marty Fried Jun 5 '12 at 6:06mv */* .won't move files from subfolders' subfolder. – virpara Jun 5 '12 at 18:03