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
In reply to Re^4: IO::Handles ... any good?
by ikegami
in thread IO::Handles ... any good?
by blowupp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |