Summary: array in ksh
Zaigui Wang
zaigui at yahoo.com
Wed Aug 6 18:07:39 EDT 2003
I was able to get what I want by way of changing the
IFS environment variable to a newline. This is how I
do it:
#> IFS='^J'
#> set -A array `ps -u root`
You may want to save the IFS value before you change
it so that it can be swapped back, if needed. Thanks
to Crist Clark for providing this hint.
My thanks also go to the following:
Mark Scarborough
John Julian
Russell_C_Page at national.com.au
Ilhan Narili
Some suggested that I use perl. Perl is bit overkill
for what I am trying to achieve though. others
suggested that double-quoting the command worked for
them, but somehow I was not able to re-produce that.
Thanks you all for helping.
Zaigui
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers at sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
More information about the summaries
mailing list