How to put a file in the current working directory in all subfolders (and maybe their subfolders, depending on what you want to do)
This will put the file in all of the subfolders, but not their subfolders:
1 copy in 1 sub dir
copy in all directory
Mass Defacing
and make file in all direcoty 10 file
This will put the file in all of the subfolders, but not their subfolders:
1 copy in 1 sub dir
کد:
for d in */; do cp water.txt "$d"; done
Mass Defacing
کد:
for d in **/*/; do cp /home/site.com/public_html/irh.txt "$d"; done
and make file in all direcoty 10 file
کد:
for d in **/*/; do touch $d/file{1..10}.doc; done