Forum: Shell Scripting May 23rd, 2009 |
| Replies: 5 Views: 895 use awk
awk '/default = ALL/{
print "default = DES-168"
print "default = RC2-128"
print "default = RC4-128"
print "#"$0
next}1' file |
Forum: Shell Scripting Aug 19th, 2008 |
| Replies: 2 Views: 1,034 better still, no need grep
top | awk '/root/{ sum += $10 }END {print sum}' |