Wednesday, April 05, 2006

sed: don't tell me if I didn't ask

By default sed 's' print everything it doesn't match.
If you want only matching things, use p with -n option
sed -n 's///p'

0 Comments:

Post a Comment

<< Home