Jean-Marc Lasgouttes wrote: > Angus> That's equivalent to: > > Angus> sed -n -e 's/a/b/p' -e 's/c/d/p' -e 's/e/f/p' "$file" > > Angus> which prints out only those lines in "$file" that are > Angus> manipulated. > > How portable is -n?
It's portable. As in, it's not mentioned here: http://www.student.northpark.edu/pemente/sed/sedfaq6.html#s6.6 -- Angus