All of lore.kernel.org
 help / color / mirror / Atom feed
From: ACario <acario@wanadoo.fr>
To: linux-newbie@vger.kernel.org
Subject: Re: Zipping files listed in a file
Date: Tue, 19 Oct 2004 22:01:16 +0200	[thread overview]
Message-ID: <cl3rsr$hb6$1@sea.gmane.org> (raw)
In-Reply-To: <20041019.18S.00273900@192.168.0.6>

Oops, I guess I've increased the counter of 
newbies-who-peruse-man-pages-a-bit-too-quickly before asking for help... 
Danke sehr Robin!
ACario

> ACario (acario@wanadoo.fr) schrieb:
> 
>>Hi,
>>For backup purpose, I'd like to zip all files of a folder that have been
>>modified or created since a given date. I get the wanted list files by
>>running "find myrep -anewer aFileWithGivenDate". Now how can I pass this
>>list of files to the "zip" compresser?
>>Thanks in advance for your help,
>>ACario
> 
> 
> Hey!
> 
> Copied from the manpage (http://linux.math.tifr.res.in/manuals/man/zip.html)
> 
> If the file list is specified as -@, [Not on MacOS] zip takes the list of
> input files from standard input. Under UNIX, this option can be used to
> powerful effect in conjunction with the find(1) command. For example, to
> archive all the C source files in the current directory and its
> subdirectories:
> 
>     find . -name "*.[ch]" -print | zip source -@
> 
> This should be exactly what you want!
> 
> Bye,
> Robin
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      reply	other threads:[~2004-10-19 20:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-18 22:00 Zipping files listed in a file ACario
2004-10-19  9:24 ` Robin Doer
2004-10-19 20:01   ` ACario [this message]

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='cl3rsr$hb6$1@sea.gmane.org' \
    --to=acario@wanadoo.fr \
    --cc=linux-newbie@vger.kernel.org \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.