Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
- To: EMAIL:PROTECTED, "MLUG Members" <EMAIL:PROTECTED>
- Subject: Re: [MLUG] cp -R --skip [pattern]?
- From: "Jonathan King" <EMAIL:PROTECTED>
- Date: Thu, 3 May 2007 12:32:17 -0400
- Delivery-date: Thu, 03 May 2007 11:32:55 -0500
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=k8zwXDLBSX2c+oAuTHt3zQw0kpTfLOZBhJzdhQQ6KQiEtJMp07rT5irBL7soaIUi1s26Y642sf8IJQq/v3/85FqL6yyfYfLFk7r3J7Mi07/eQP3mWYSEKN8K94rCQxqnWluIk6zrTDwrYs/aWjs5FDQLI9oBU0VhMEG260f+mgQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VpeEUsXSXVFImABu6W5YC/QiSBRc0fjLF1NtP++aOXDfQR2X+sG44UmoNVs4nMqKd7tLIUBjFiNTWxgbUmEKnyDKiu6+CHvEbjVOlx4uRAFNrBpaxfXEdBexUx0EytMMmSceGhYBrNP96STPrx9JVxaQPKldvDZeVDrBPsMZv+o=
- Envelope-to: EMAIL:PROTECTED
- In-reply-to: <EMAIL:PROTECTED>
- References: <EMAIL:PROTECTED> <EMAIL:PROTECTED> <EMAIL:PROTECTED>
- Reply-to: MLUG Members <EMAIL:PROTECTED>
- Sender: EMAIL:PROTECTED
On 5/3/07, Dave Lloyd <EMAIL:PROTECTED> wrote:
On Thu, 3 May 2007, Dave Lloyd wrote:
> On Thu, 3 May 2007, Mike Miller wrote:
>
>> I don't think this exists, but this is what I'd like: A way to copy a
>> directory tree but ignoring certain files, or copying files of a certain
>> type only.
>>
>> I have a directory tree with MP3 files in it, but there also are HTML files
>> (album reviews) and JPEG files (album covers). I would like to replicate
>> that directory tree without the MP3 files. I know that I could copy the
>> whole thing and then delete the MP3 files, but they are huge and that is
>> not feasible.
> find ./ -name \*mp3 -exec cp {} /newpath \;
probably even better would be
find ./ -name \*mp3 -print | cpio -ocv | (cd /newpath ; cpio -id )
But he wants to skip the mp3 files; basically, he wants the equivalent
of -v in grep. I may be missing something, but it's not obvious this
is easily doable. Something like:
find ./ -print | grep -v \*mp3 | blahblahblah
might do it, but somebody else seems to have found a great way using
rsync, which may moot this.
jking
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members