I was wondering how to file all directories that match a string and then if found, copy a file from root to that directory.
1 Answer
find some/dir -type d -name foo.42 -exec cp somefile {} \;
-
thanks so much! saved me a lot of time. i really appreciate it. Apr 22, 2011 at 8:57