Search Results

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Gromit ; Forum: Shell Scripting and child forums
Forum: Shell Scripting May 5th, 2009
Replies: 2
Views: 641
Posted By Gromit
That's really odd... It works OK on my system:


$ sed -f DBACheck.sql.sed DBACheck.sql
select granted_role from sys.dba_role_privs where grantee='SYSTEM';



What version of sed are you...
Forum: Shell Scripting Nov 5th, 2008
Replies: 1
Views: 896
Posted By Gromit
Wow, that's a lot of pipes! I would do it something like this:


awk '{TotCPU += $1}{TotMem += $2}END{print "Total CPU= " TotCPU "\nTotal Mem= "TotMem}' test.list


Kinda ugly all in one...
Forum: Shell Scripting Sep 22nd, 2008
Replies: 6
Views: 1,849
Posted By Gromit
If all that's in that directory is the sym links to the files that you want to tail, try something like this:


for i in $(ls /path/to/directory); do tail -n 21 $i; done


Let us know how it...
Showing results 1 to 3 of 3

 


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

©2003 - 2009 DaniWeb® LLC