in reply to s/// + tr/// when perl -ni -e on semi-colons in one liners echoed to files
Well, -n doesn't print, but -p does print :)
$ perl -le " print qq{a;b;c;d} " a;b;c;d $ perl -le " print qq{a;b;c;d} " | perl -ne " tr/;/\n/ ; " $ perl -le " print qq{a;b;c;d} " | perl -pe " tr/;/\n/ ; " a b c d
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: s/// + tr/// when perl -ni -e on semi-colons in one liners echoed to files
by Don Coyote (Hermit) on Nov 18, 2012 at 12:47 UTC | |
by Anonymous Monk on Nov 18, 2012 at 12:57 UTC | |
by Don Coyote (Hermit) on Nov 18, 2012 at 13:12 UTC |