If you need to cut some substring from string. you can use this way.
A = `XXX` is mean execute XXX command and return result into A.TotalMem=`df -h "$1" | grep "$1" | "$BUSYBOX_FILE" awk '{ FS = "[ ]+" } { print $2 }'`
I use awk command from busybox.




Reply With Quote


