* [Comm] вопросик по tar & gz
@ 2005-09-02 11:54 Oleg Pan
2005-09-02 12:03 ` Eugene Ostapets
2005-09-02 12:06 ` Dmytro O. Redchuk
0 siblings, 2 replies; 3+ messages in thread
From: Oleg Pan @ 2005-09-02 11:54 UTC (permalink / raw)
To: community
Hello community,
ситуация:
Есть папка /mnt/large
в ней много подпапок вида:
21.08.05
22.08.05
23.08.05
...
хочется одной командой получить архив каждой папки в отдельности:
21.08.05.tar.gz
22.08.05.tar.gz
23.08.05.tar.gz
...
Что мне может помочь
--
Best regards,
Oleg mailto:wacom@narod.ru
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] вопросик по tar & gz
2005-09-02 11:54 [Comm] вопросик по tar & gz Oleg Pan
@ 2005-09-02 12:03 ` Eugene Ostapets
2005-09-02 12:06 ` Dmytro O. Redchuk
1 sibling, 0 replies; 3+ messages in thread
From: Eugene Ostapets @ 2005-09-02 12:03 UTC (permalink / raw)
To: ALT Linux Community
02.09.05, Oleg Pan<wacom narod.ru> написал(а):
> Hello community,
>
> 21.08.05
> 22.08.05
> 23.08.05
> 21.08.05.tar.gz
> 22.08.05.tar.gz
> 23.08.05.tar.gz
>
> Что мне может помочь
http://www.justfuckinggoogleit.com/
man find
man tar
find /mnt/large -type d -exec tar zcf {}.tar.gz {} \;
--
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] вопросик по tar & gz
2005-09-02 11:54 [Comm] вопросик по tar & gz Oleg Pan
2005-09-02 12:03 ` Eugene Ostapets
@ 2005-09-02 12:06 ` Dmytro O. Redchuk
1 sibling, 0 replies; 3+ messages in thread
From: Dmytro O. Redchuk @ 2005-09-02 12:06 UTC (permalink / raw)
To: community
On Fri, Sep 02, 2005 at 03:54:17PM +0400, Oleg Pan wrote:
> Hello community,
>
> ситуация:
> Есть папка /mnt/large
> в ней много подпапок вида:
> 21.08.05
> 22.08.05
> 23.08.05
> ...
>
> хочется одной командой получить архив каждой папки в отдельности:
>
> 21.08.05.tar.gz
> 22.08.05.tar.gz
> 23.08.05.tar.gz
> ...
for folder in /mnt/large/* ; do
# do that
done
Если подпапок очень много, bash будет ругаться.
Надо будет что-то вроде:
ls /mnt/large | while read folder; do
# do that
done
>
> Что мне может помочь
>
> --
> Best regards,
> Oleg mailto:wacom@narod.ru
>
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> https://lists.altlinux.ru/mailman/listinfo/community
--
_,-=._ /|_/|
`-.} `=._,.-=-._., @ @._,
`._ _,-. ) _,.-'
` G.m-"^m`m' Dmytro O. Redchuk
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-09-02 12:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-02 11:54 [Comm] вопросик по tar & gz Oleg Pan
2005-09-02 12:03 ` Eugene Ostapets
2005-09-02 12:06 ` Dmytro O. Redchuk
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git