The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-16-2007
Raynon Raynon is offline
Registered User
 

Join Date: Sep 2006
Location: Sg
Posts: 323
Array Properties

Hi All,

I have a code below but i have problems trying to execute "cat $jpg[1]". Can anybody give me any advise? Is there something wrong with my syntax ?

Code:
#!/bin/csh

set qqq = 123
set www = 456

set jpg = ( $qqq $www )

cat $jpg[1]
Output:
Reply With Quote
Remove advertisements
!!
Forum Sponsor