in reply to How to remove all new line ?

Here's a one-liner:
perl -l0pe0 your_file

Replies are listed 'Best First'.
Re^2: How to remove all new line ?
by axeman (Initiate) on Aug 18, 2008 at 23:48 UTC
    Or this:
     print map { chomp; $_ } <DATA>;
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re^2: How to remove all new line ?
by blazar (Canon) on Aug 19, 2008 at 10:55 UTC

    I personally believe that however appealing this can be, to be very sure, perldoc perlrun recommends using 0777 rather than 0 because "there is no legal byte with that value."

    Update: JavaFan is actually right, since for some reason I was thinking of an entirely different problem, namely that of slurping, and not to the OP's. Which anyway would work with -0777 and not -l0777... Apologies!

    --
    If you can't understand the incipit, then please check the IPB Campaign.
      Using -l0777pe0 will not work. It will print ÿ after each line. (Now, -l0pe0 doesn't really work either, it prints a NUL byte after each line. But you won't see that...)