in reply to Re^3: IO::Handles ... any good?
in thread IO::Handles ... any good?
Windows shell would be
for %q in (*.txt) do perl -pe"$_.=$/" "%q" > "%q.new"
And a golfed version would be
perl -nEsay # 5.10 perl -pe$_.=$/ # <5.10 Windows perl -pe'$_.=$/' # <5.10 bash
|
|---|