From: Rob Windsor <windsor@warthog.com>
To: Sven Guckes <guckes@math.fu-berlin.de>
Cc: zsh-users@math.gatech.edu
Subject: Re: backing up with zsh
Date: Fri, 17 Apr 1998 15:20:29 -0500 [thread overview]
Message-ID: <199804172020.PAA27672@kenku.warthog.com> (raw)
In-Reply-To: Your message of "Fri, 17 Apr 1998 21:56:17 +0200." <19980417215617.A9887@math.fu-berlin.de>
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.
next prev parent reply other threads:[~1998-04-17 20:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-17 19:56 Sven Guckes
1998-04-17 20:20 ` Rob Windsor [this message]
1998-04-18 9:36 ` TGAPE!
1998-04-18 18:08 ` Bart Schaefer
[not found] ` <vkzphkchu4.fsf@cdc.noaa.gov>
1998-04-17 20:42 ` Sven Guckes
[not found] ` <vkyax4cgur.fsf@cdc.noaa.gov>
1998-04-17 21:00 ` Sven Guckes
1998-04-18 0:44 ` Perl and ZSH (WAS: Re: backing up with zsh) tep
1998-04-17 21:24 ` Bart Schaefer
1998-04-18 10:53 ` Perl and ZSH Jonas Bofjall
1998-04-18 9:53 ` TGAPE!
1998-04-18 18:21 ` Bart Schaefer
1998-05-04 23:47 ` Zsh and CVS Scott RoLanD
1998-04-18 10:13 ` backing up with zsh Mirar
1998-04-20 8:47 ` Andrew Main
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199804172020.PAA27672@kenku.warthog.com \
--to=windsor@warthog.com \
--cc=guckes@math.fu-berlin.de \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).