Search Results

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: ghostdog74 ; Forum: Shell Scripting and child forums
Forum: Shell Scripting May 23rd, 2009
Replies: 5
Views: 895
Posted By ghostdog74
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
Posted By ghostdog74
better still, no need grep

top | awk '/root/{ sum += $10 }END {print sum}'
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC