SPUG: perl one-liner help
dblanchard at gmail.com
Wed Apr 4 15:08:47 PDT 2007
This should be the simplest thing, but I'm not able to get it.
I have a list of names in a file separated by a semicolon and a space:
Starr, Ringo; McCartney, Paul; Lennon, John; Harrison, George;
and I want to substitute each /; / with a /\n/.
I'm running WinXP.
perl -e "s/; /\n/" desktop/list.txt
Thanks for any tips.
There are 10 kinds of people in the world;
those who know binary and those who don't.
More information about the spug-list