maybe there's a more elegant way, but this will work:
open I, "input.txt";
open O, "output.txt";
while(<I>) { print O unless $. == $foo }
where $foo is the line number you dont want printed.
hth,
Jos Boumans
St�phane JEAN BAPTISTE wrote:
> HI.
>
> I'm looking for a method to delete the line number x into a file.
>
> Is it simply possible ?
>
> tks
- to delete only one line St�phane JEAN BAPTISTE
- Re: to delete only one line Jos Boumans
- Re: to delete only one line Nigel Wetters
