From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25315 invoked from network); 17 Apr 1998 20:24:35 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 17 Apr 1998 20:24:35 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id QAA29305; Fri, 17 Apr 1998 16:21:20 -0400 (EDT) Resent-Date: Fri, 17 Apr 1998 16:21:06 -0400 (EDT) Message-Id: <199804172020.PAA27672@kenku.warthog.com> To: Sven Guckes Cc: zsh-users@math.gatech.edu From: Rob Windsor Reply-To: Rob Windsor Subject: Re: backing up with zsh X-Files: THE TRUTH IS OUT THERE X-Icky-Mailer: Hello Netscape User In-reply-to: Your message of "Fri, 17 Apr 1998 21:56:17 +0200." <19980417215617.A9887@math.fu-berlin.de> Date: Fri, 17 Apr 1998 15:20:29 -0500 Sender: windsor@warthog.com Resent-Message-ID: <"KuqL6.0.E97.ncxDr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1460 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Verily did Sven Guckes write: > I am trying to use the zsh to back my webpages. > I just want to backup text files, ie no pictures. > They webpages all reside in "~/.P". The pictures are within ~/.P/pics/ - > excluding this one dir is not a problem, but the problem is that some of > the pictures are scattered across the subdir of ~/.P still. > How do I exclude these pictures? > Possible filename extensions for pictures are: bmp gif jpg jpeg > But how do I specify these as case insensitive? > Do I have to list all possible combinations of upper- and lowercase spelling? possibly. A good start would be: cd ~/.P ; find . -type f \! \( -name '*.gif' -a -name '*.jpg' -a -name '*.jpeg' -a -name '*.bmp' \) -print | xargs cvvzf /tmp/guckes.web.980417.tar.gz > Should I use zsh's globbing at all? > Or should I exclude filename with gtar's "-X File" feature? > gtar cvvzf /tmp/guckes.web.980417.tar.gz ~/.P -X files.exclude > I may also need a restriction for file size (for all files), say 100K at > most. > Is that possible? Sure, check the manpage for find(1), look for "-size". -- Rob ---------------------------------------- Internet: windsor@warthog.com Life: Rob@Carrollton.Texas.USA.Earth The weather is here, wish you were beautiful.