in reply to Is there a good way to unify text files something like dos2nix shell script(s) do?
$ perl -i.bak -pe 's/\s*[\r\n]+$/\n/g;' ./a*.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is there a good way to unify text files something like dos2nix shell script(s) do?
by taint (Chaplain) on Dec 20, 2013 at 19:04 UTC |