News for hackers. Stuff that matters.
Re:Useful Perl one-liners (2013) by sndean on Tuesday November 29, 2016 @01:46PM (#13065213)
Awk is a easier for me to remember than sed or perl, just because "sub" (for substitution) is in there:

    awk '{gsub(/this/,"that")}; 1'

Edit: I just learned that "s" in the sed command is for substitute... (http://www.grymoire.com/Unix/Sed.html) Well, maybe I'll be able to remember that.

There are no comments on this comment yet.