Sedatives with sed
sed -e 's/template/supplement/g'
parameters:
-e allows to chain more rules for replace
/g replaces all occurences (global)
Fresh grepfruit
grep -P 'template' file
prints lines from file which match regex template.
-P uses Perl-compatible regular expressions (if not available, try -E instead)
-E uses extended regular expressions
Awkward tasks
who | awk -F ' ' '{print $1}'
prints first item of each line.
-F specifies item delimiter, default is white character.
Monday, November 17, 2008
Subscribe to:
Post Comments (Atom)
0 komentářů:
Post a Comment