The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-13-2008
drkelly76 drkelly76 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 1
csh array help!!

I'm trying call the first item in the array then put it in a loop to call the next items in order.


set $p = (port-1, port-2, port-3, port-4, exit)

<sourcePort>daughtercard:$P[1]</sourcePort>

if ($p == "exit") then
break
else ($p >> 1)

I know the above code isn't correct. I'm just not sure how to get $p to change ports in order until exit.

thanks in advance for your help.

DK