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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -