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 03-18-2009
vincyoxy vincyoxy is offline
Registered User
  
 

Join Date: Mar 2009
Location: Singapore
Posts: 12
Simple using For loop

Hi expert,
I'm using csh

Code:
#!/bin/csh
set x = 0

set number = `awk '{array[NR]=$0} END {print array[x];}'`

i want to use for loop to store data to $number repeatly
untill x = 23
How to use c shell for loop?