Hi All
I came accross of interesting problem and wanted to know if you have more
elegant solution than I have.
I often use awk to produce a list of strings which I parse after it next way:
X="111 222 333"
set $X
A=$1
B=$2
C=$3
All worked till recently I got values like this:
X="-2.53 -4.5 5"
set $X
... produces:
set: Unknown option "-2"set: Usage: set [+-abCefhikKmnptuvxX] [+-o option] [-s]
[+-A name] [arg ...]
At this point I replaced this code with:
A=`echo $X|awk '{print $1}'`
... and so on.
Do you know how I can break X string into words without using awk?
Thank you all.
Gene._______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users