From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 23 Sep 2002 19:48:00 +0300 (EEST) From: Yura Kalinichenko X-X-Sender: yuk@localhost.localdomain To: community@altlinux.ru Subject: Re: [Comm] Re: =?koi8-r?B?8sXawdTYIMbByswgzsEgy9XT?= =?koi8-r?B?z97LyS4=?= In-Reply-To: <20020923154834.GL20694@osdn.org.ua> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: community@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: В Пон, 23 Сен 2002, Michael Shigorin написал(а): MS> On Fri, Sep 20, 2002 at 08:54:30AM +0600, Alexander Mayorov wrote: MS> > Как у каждого файла отрезать и выкинуть первые 30 кб, оставив MS> остальное? MS> MS> интуитивно понятно -- head/tail :) [можно и cut, но -- зачем?] MS> MS> for fn in * ; do dd bs=1k skip=30 if=$fn of=${fn}-30 if [ $? -eq 0 ]; then mv ${fn}-30 $fn fi done -- Yura Kalinichenko