Bash - Copy files from directory -
i have folder contains folders:
main \_ dir 1 \_ dir 2 \_ ... \_ dir 40
i need open each sub-folder, copy files , paste them in folder, same folder sub-folder.
how can in smart way?
the thing comes mind create list name of folders , use simple script open, copy , paste i'm sure there faster way write names.
try:
cp main/*/* /path/to/otherfolder/
if want warned before overwriting file, use -i
option:
cp -i main/*/* /path/to/otherfolder/
Comments
Post a Comment