Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ksh syntax - help!

Status
Not open for further replies.

southbeach

Programmer
Jan 22, 2008
879
US
Working on a script and came across a do:while where
Code:
typeset -i n=1
until [ ${n} -gt ${#CF1[@]} ] ; do

... code ...
... code ...
... code ...

done

What is ${#CF1[@]}?

It seems to me like it is an array of sort.  If that is the case, where does it get its values?

Thanks,





--
SouthBeach
[URL unfurl="true"]http://www.fpgroups.com[/URL]
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
What is ${#CF1[@]}?
The number of elements in the array CF1

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV, I though that's what it was but is it a SYSTEM built in based on passed parameters/arguments?

In the script I am looking at, this array is used by reference and one of them is as noted in my original post. The 2nd reference simply transfer the value to a simpler variable.


--
SouthBeach
The good thing about not knowing is the opportunity to learn - Yours truly, 2008.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top