The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-01-2006
ravikirankethe ravikirankethe is offline
Registered User
 

Join Date: Oct 2006
Location: NewYork
Posts: 21
Simple Array in Ksh Scripting

Ksh Scripting

Can some one give me a simple example of array operations using ksh.

For Ex:
week_array = {Sunday Monday Tuesday Wednesday Thursday Friday Saturday}

I want to assign and retrieve and print them along with their index.

I am looking for the o/p like:
0 Sunday
1 Monday
2 Tuesday
3 Wednesday
4 Thursday
5 Friday
6 Saturday
Reply With Quote
Forum Sponsor