![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| String concatenation issue in ksh | arvindcgi | Shell Programming and Scripting | 3 | 05-16-2008 08:57 AM |
| Searching for a string variable | mattrix | UNIX for Dummies Questions & Answers | 2 | 03-04-2008 12:04 PM |
| string concatenation | systemsb | UNIX for Dummies Questions & Answers | 7 | 04-04-2006 09:03 AM |
| parsing a string into variable | Anubhav | Shell Programming and Scripting | 5 | 02-10-2006 09:02 AM |
| how to cut a string from a variable | kjaisan | UNIX for Dummies Questions & Answers | 2 | 10-30-2003 09:13 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello,
in my script i have this lines of code in a while cycle: .. let j=i+1 t_prod_$i = `cat myfile.csv | grep world | cut -d ";" -f$j` let i+=1 ... So if i try an echo $t_prod_$i at the end of the cycle i cannot see the right value obtained by `cat myfile.csv | grep world | cut -d ";" -f $j` but I receive an error: ./myscript.sh[17]: t_prod_1: not found. how i should assign output of the command between ` ` to the variable t_prod_$i (so i will have t_prod_1= ... t_prod_2=... )?? thanks for helping |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
if I put standard variable name, like t_prod_1= ... i have no problem, maybe i cannot create dinamically variable names? |