Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> UNIX alias question
What is the proper syntax to make an alias out of:
expr `(ls -l /vol*/oradata/${ORACLE_SID}/* | awk '{print $5," + "}'; echo 0)`
I tried several ways including:
alias dbsize='expr `(ls -l /vol*/oradata/${ORACLE_SID}/* | awk \'{print $5,"
+ "}\'; echo 0)`'
ksh: 0403-057 Syntax error: `)' is not expected.
I've been staring at this too long...
TIA,
Alan Martin
Database Administrator
GMAC Insurance Personal Lines
Winston-Salem, NC
Alan.Martin_at_GMACInsurance.com
Received on Wed Jul 12 2000 - 15:15:07 CDT