From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Zyserman Subject: deleting N lines of many files Date: Fri, 17 Dec 2004 09:33:14 -0300 Message-ID: <41C2D20A.70404@fcaglp.unlp.edu.ar> Reply-To: zyserman@fcaglp.unlp.edu.ar Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-admin-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-admin@vger.kernel.org Hi all, I have about eighty directories, called data-nn, where nn=00,01,02,.... in each of these directories I have among others, an (ascii) data file with many thousends lines. This data file has the same name in all directories. I would like to know if it is possible, via a bash script, to delete the first N lines in this data file in all directories. The modified file can overwrite the old one. Many thanks in advance, Fabio Zyserman