[conspire] vim vs sed awk and grep + interactive vs automation [was Re: Slice of life]

Rick Moen rick at linuxmafia.com
Tue Sep 22 14:33:11 PDT 2009


Quoting Tony Godshall (tony at of.net):

> You use awk instead of sed for replacement?  I've never done that.
> Example for the peanut gallery please?

See, now you want me to do actual work.  ;->  Personally, I'd rather do
that with sed, given that it can be done without crazy leaning-slashes
uglines.  However, what you use is awk's sub() and gsub() (global
substitute) string-substitution functions, which you can read about here:

http://www.ibm.com/developerworks/library/l-awk3.html
http://www.well.ox.ac.uk/~johnb/comp/awk/awk.html




More information about the conspire mailing list