3
3
I have a folder on a Linux server with 35+ subdirectories, along the lines of:
aa.foo.bar.baz
ab.foo.bar.baz
..
bp.foo.bar.baz
I have a file that I want to copy into each of those subdirectories. What's a quick way to do that without running 35+ separate cp commands manually?
what if there is a file in the current dir that matches *.foo.bar.baz? – bryan – 2011-09-28T17:25:17.297
@bryan: See updated answer. (FWIW,
ls -d
would have listed files as well.) – user1686 – 2011-09-28T17:26:40.540copied from the wrong terminal, added in my slash – bryan – 2011-09-28T17:31:04.213