You are on page 1of 1

$ cd arch $ ls CGFSCUT_arch CGFSUAT_arch $ du -h . 2.9G ./CGFSUAT_arch 13G ./CGFSCUT_arch 15G . $ df -h .

Filesystem Size Used Avail Use% Mounted on /dev/vx/dsk/oradg/oracle 120G 108G 12G 91% /oracle $ pwd /oracle/arch

getname() { sqlplus -s apps_r/apps_r@CGFSUAT << EOF set FEEDBACK OFF ; set HEADING OFF ; select name from v\$database ; exit ; EOF } echo `getname` awk -F "/" -v '{print $3}'

You might also like