The UNIX and Linux Forums  


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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
split varibles and store fields into shell varible array gratus Shell Programming and Scripting 3 10-11-2007 03:50 PM
How to create ENV varibles koti_rama UNIX for Dummies Questions & Answers 1 07-10-2007 06:39 AM
how to dynamic DNS bondoq Linux 1 11-14-2006 10:34 AM
different way to echo varibles...help wxornot UNIX for Dummies Questions & Answers 8 01-06-2006 01:13 PM
environmental varibles Xiix UNIX for Dummies Questions & Answers 1 07-25-2001 02:31 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-28-2005
oconnon2 oconnon2 is offline
Registered User
  
 

Join Date: Apr 2005
Posts: 1
Dynamic Varibles problem

All,
Any chance someone could help me with this.... The script is reading from a file and for every line of input to the loop I am trying to assign a new varible. When i run the script I get the below errors. I have come to a bit of a dead end so any pointers/help would be very much appriciated...

Cheers nathan

i=1
while read -r LINE
do
DISK_FOUND$i=$LINE
((i=i+1))
done < FILE_SYSTEMS


and the output i get...

wipe_disk_select.ksh[19]: DISK_FOUND1=/dev/md/dsk/d0: not found
wipe_disk_select.ksh[19]: DISK_FOUND2=/dev/md/dsk/d3: not found
wipe_disk_select.ksh[19]: DISK_FOUND3=/dev/md/dsk/d5: not found
wipe_disk_select.ksh[19]: DISK_FOUND4=/dev/md/dsk/d4: not found
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:22 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0