Originally posted by: SystemAdmin
Brian Veale,
Thanks for the advice,
After adding the echo command as suggested - echo $usep - the below was the output received:
55
48
10
28
14
-
22
4
24
35
61
Which is exactly the output I am looking for but the IF/THEN portion of the script seemed to be having issues with data being derived by LINE 15.
The issue still appears to be at line 18.
I am receiving the below output with the echo of $usep included - see below:
55
48
10
28
14
-
./diskspace.sh
18: -: more tokens expected
22
4
24
35
61
I am attaching the script for your convenience.
The below are the partitions I am running query on:
/dev/hd4 0.06 0.03 55% 2434 26% /
/dev/hd2 2.12 1.11 48% 30114 11% /usr
/dev/hd9var 1.00 0.91 10% 589 1% /var
/dev/hd3 1.06 0.77 28% 1379 1% /tmp
/dev/hd1 1.00 0.86 14% 4440 3% /home
/proc - - - - - /proc
/dev/hd10opt 0.25 0.20 22% 2001 5% /opt
/dev/lv00 0.31 0.30 4% 19 1% /sysdata
/dev/lv01 8.00 6.10 24% 36890 3% /apps
fctrng_01:/code 2.00 1.31 35% 33405 10% /code
fctrng_01:/software 98.00 38.90 61% 151478 2% /software
Thanks,
Gareth..
#AIX-Forum