3 thoughts on “sed not awk”

  1. As a note, there’s no reason to cat and then grep. (I used to do this.) Simply grep and then pipe to sed. For example:

    grep mlambie /etc/passwd | sed ‘s/Matthew/Dinagling/’
    grep mlambie /etc/passwd | sed ‘s/Matthew/Andrew’

    The out put will be the same. : )

Comments are closed.