From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 2 Sep 2005 15:06:50 +0300 From: "Dmytro O. Redchuk" To: community@altlinux.ru Subject: Re: [Comm] =?koi8-u?B?18/Q0s/Tycsg0A==?= =?koi8-u?Q?=CF?= tar & gz Message-ID: <20050902120650.GT5082@ldc.net> Mail-Followup-To: community@altlinux.ru References: <2610325435.20050902155417@narod.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-u Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2610325435.20050902155417@narod.ru> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on backup.ldc.net X-Virus-Status: Clean X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2005 12:06:52 -0000 Archived-At: List-Archive: List-Post: 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