Search Results

Search: Posts Made By: drain
1,316
Posted By drain
ok thanks now i have only a problem my...
ok thanks now i have only a problem

my input.csv has got a different separator from conf.cfg:

conf.cfg has ;
input.csv has ~

how i can insert the second operator?
1,316
Posted By drain
Help with awk and conf file
hello

i have a configuration file with some fields, for example:

#file conf.cfg
name;object;var1;var2;var8


then i have a csv data file:

var1;var2;var3;var4;var5;var6;var7;var8;var9...
6,797
Posted By drain
need a way to build variable in this manner: ...
need a way to build variable in this manner:

variable_$i

where i goes from 1 to 5 for example...

and then print them on screen with echo $variable_$i


which is the best way to do this?
6,797
Posted By drain
:( nothing if I put standard variable name,...
:( nothing

if I put standard variable name, like t_prod_1= ... i have no problem, maybe i cannot create dinamically variable names? :confused:
6,797
Posted By drain
nothing get the same error... i'm using...
nothing get the same error...

i'm using Posix Shell under Hp-UX
6,797
Posted By drain
Help concatenation string and variable
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...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 07:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy