Parameter expansion on program output in KSH
J.B. Nicholson
jbn35564 at uxa.cso.uiuc.edu
Tue Apr 16 12:34:54 AEST 1991
Is it possible to use parameter expansion on program output w/o assigning
a variable first? For example, is it possible to say something to the
effect of:
print ${$(hostname)%%.*}
instead of:
HOSTNAME=$(hostname)
print ${HOSTNAME%%.*}
Thanks.
Jeff
--
+----------------------------------------------------------------------------+
| "If you hear an onion ring - answer it." J.B. Nicholson |
+----------------------------------------------------------------------------+
| jeffo at uiuc.edu (Internet) These opinions are mine, that's all.|
+----------------------------------------------------------------------------+
More information about the Comp.unix.shell
mailing list