The "Vimal Mohan" Blog

Oracle, Unix basics & tricks for all those interested in discovering…

Archive for the ‘Unix’ Category

Discussions on Unix

To remove new line characters from a file in UNIX

Posted by Vimal Mohan on May 30, 2011

perl -e ‘while (<>) { if (/$/ ) { chomp; } print ;}’ input_file > output_file

Advertisements

Posted in Unix | Leave a Comment »