Home | FAQ | Server | Presentations | Mailing Lists/Archives | Member Tools | Links | Sponsors | ContactUse 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.
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
<<winmail.dat>>
_______________________________________________ members mailing list EMAIL:PROTECTED http://mlug.missouri.edu/mailman/listinfo/members