From: Drew (apt@dcs-success.com)
Date: Mon Jul 15 2002 - 08:56:59 EDT
Hi fello AIXers,
I am writing a script that includes the line:
grep loss tempfile | cut –f7 –d” “
The above line returns returns a one or two digit number with a percent
sign. Usually it returns only: 0%
What I’m trying to do is, remove the % sign and initialize this value to a
variable, which I can then perform
basic functions on. Any help would be greatly appreciated.
I was trying something like:
VALUE=[grep loss tempfile | cut –f7 –d” “]
but it isn’t working. I think I need to extract the 0 from the % and then
assign it a variable name. I’m just not sure
Thanks all,
Drew
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:03 EDT