![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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 |
| Display Modes | Rate This Thread |
|
|