From: Zaigui Wang (zaigui@yahoo.com)
Date: Tue Aug 05 2003 - 19:49:06 EDT
Managers,
I am trying to achieve automatic array assignment in
ksh but seem to have problem with values that have
spaces in them.
For example, I can do this OK:
set -A PID `pgrep dt`
but I cannot assign this correctly:
set -A PID_with_command `pgrep -l dt`
I'd like to assign one entire line returned from
"pgrep -l" to one array variable. Is there a solution?
The man page on array usage in ksh is pretty sketchy.
Is there any good reference?
Zaigui
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:52 EDT