I know this is a perl list, but just because you have a hammer in your hand doesn't make everything a nail, right?
How about <also untested> sed '132,134d' datafile > newfile -Michael >>> "David Olbersen" <[EMAIL PROTECTED]> 03/25/03 05:41PM >>> All'adr, Something like (untested) this? while( <> ) { print $_ unless( $. == 132 or $. == 133 or $. == 134 ); } -------------------------- David Olbersen iGuard Engineer 11415 West Bernardo Court San Diego, CA 92127 1-858-676-2277 x2152 > -----Original Message----- > From: Adriano Allora [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 3:39 PM > To: [EMAIL PROTECTED] > Subject: how can I delete a line? > > > hello, > I need to delete single lines in a text (for example the > 132nd, the 133rd and the 134th ones). > How can I do it in a structure like: > > if $. = selected number > line = "" > > ? > thanks, > > > all'adr > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]