in reply to Re: How to Print Every Other Line
in thread How to Print Every Other Line
perl -pe '<>' < input
I didn't see the original one that hung on odd numbers of lines in input (but I guess it looked like this), but on my machine this one doesn't hang. ?
Ah, I see, it hangs if I input from STDIN, instead of a file. Have to ^D twice, anyway. Still, since the OP asked for file manipulation, I'd say this was OK for a solution..:wq