News for hackers. Stuff that matters.
Re:Perl/Linux, a Linux distribution where all programs are w... by buntar on Friday August 17, 2012 @04:32AM (#4395541)
I could use a lightweigt and fast perl version of SED. There are incompatibilities between sed versions, especially between linux and mac. Therefor a small sed utility that you can ship with every release would be useful.
Re:Perl/Linux, a Linux distribution where all programs are w... by zokier on Friday August 17, 2012 @08:06AM (#4395945)
perl -p -e?
Re:Perl/Linux, a Linux distribution where all programs are w... by peterwwillis on Friday August 17, 2012 @10:27AM (#4396489)
add -i to edit a file in place

     $ perl -p -i -e 's/\r\n/\n/' file1 file2 file3