Forum: Shell Scripting May 5th, 2009 |
| Replies: 2 Views: 641 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 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 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... |