Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Woodsmall, Ryan (IATS) wrote:
Use the "!"
find . -type f ! -name \*.mp3 -exec cp {} /new/path \;
or use the "-print" option to pipe filenames to cp, mv, tar, cpio, etc. This will copy anything that is NOT an mp3 file. rsync is awesome and all, but it's overkill for something like this.
But it won't copy the directory structure.
Personally I think rsync is a totally cool idea. Better than my tar idea.
ryan woodsmall
EMAIL:PROTECTED
"Be well, do good work, and keep in touch." - Garrison Keillor
________________________________
From: EMAIL:PROTECTED on behalf of Mike Miller
Sent: Thu 5/3/2007 10:08 AM
To: MLUG Members
Subject: Re: [MLUG] cp -R --skip [pattern]?
On Thu, 3 May 2007, Dave Lloyd wrote:
find ./ -name \*mp3 -exec cp {} /newpath \;
That skips all *mp3 files and copies all others?
I would have thought that it copies mp3 files and ignores all others.
Mike
------------------------------------------------------------------------
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members