0

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 1

3
find some/dir -type d -name foo.42 -exec cp somefile {} \;
1
  • thanks so much! saved me a lot of time. i really appreciate it. Apr 22, 2011 at 8:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .