[ale] SED substution question

Fletch fletch at phydeaux.org
Fri May 17 11:51:02 EDT 2002


>>>>> "John" == John C <jcouncilman at knology.net> writes:

[...]

    John> Why won't this work, and what will?

    John> cat filename | sed 's/,/\n/g'


        You're missing a -e and you don't need the cat.

sed -e 's/,/\
/g' foo

        You need a literal newline there (either by hitting return or
by using C-v C-j. 

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
770 933-0600 x211(w)  |  scary questions." -- Jules                =(___)=
770 294-0820 (m)      |                                               U

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list