Korn Shell
I have a line like this:
LINE='/dev/vx/dsk/sapmnt 14487552 2584835 11172528 19% /sapmnt'
$ echo $LINE | awk '{print $5}'
19%
Question: How do I get the number "19" only? How do I get rid of the "%" sign?
Results 1 to 5 of 5
Thread: Shell Programming help
|
Click Here to Expand Forum to Full Width |