* Zipping files listed in a file
@ 2004-10-18 22:00 ACario
2004-10-19 9:24 ` Robin Doer
0 siblings, 1 reply; 3+ messages in thread
From: ACario @ 2004-10-18 22:00 UTC (permalink / raw)
To: linux-newbie
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
-
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Zipping files listed in a file
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
0 siblings, 1 reply; 3+ messages in thread
From: Robin Doer @ 2004-10-19 9:24 UTC (permalink / raw)
To: ACario, linux-newbie
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
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: Zipping files listed in a file
2004-10-19 9:24 ` Robin Doer
@ 2004-10-19 20:01 ` ACario
0 siblings, 0 replies; 3+ messages in thread
From: ACario @ 2004-10-19 20:01 UTC (permalink / raw)
To: linux-newbie
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-19 20:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox