|
- SOLVED - copy all of one filetype found by locate command to a single directory
I have a few different partitions, all mounted. Some of them are windows, some of them are linux.
I'm using mandrake linux community 10.1 and would like to use one command or a small shell script to copy all true type fonts (ttf or TTF) files found with the locate command into a single directory.
How can I pipe the output of a locate command to the cp command? Something like:
locate -i ttf > ttflist
[for every line in ttflist]
cp line /my/desired/font/path/
[rof]
I'm not really familiar with shell scripts, and I AM learning them, but this seams like there should be a quick solution out there that I can just implement now.
Last edited by socratesone; 06-22-2005 at 01:23 PM.
|