bash - Need help copying files to all directories recursively -
i have bunch of folders different names on trying copy 1 file . not sure on how wildcard charachter. can please me out on this? far stuck command
cp -r custom.css    as can see trying copy custom.css directories. thanks!!
a simple loop:
for d in path/to/dir1/ path/to/dir2/ path/to/dir3/;    cp custom.css "$d" done   edit:: run parent directory copy file subdirectories:
for d in */;    cp custom.css "$d" done      
Comments
Post a Comment