Search Results

Search: Posts Made By: gopalss
4,560
Posted By gopalss
Thanks Frans . I will try this and let you know
Thanks Frans .
I will try this and let you know
4,560
Posted By gopalss
say file A is having 4 fields .. so data in it...
say file A is having 4 fields .. so data in it would be like -
1:2:3:4
11:22:33:44
..
...
so my variable {col_expr_list} would be having - "COL1 COL2 COL3 COL4" .. and the read statement would...
4,560
Posted By gopalss
yes.. they are already delimited with ':' .......
yes.. they are already delimited with ':' .... and that's why i am able to populate the COL1 ... COL11 with file values.
4,560
Posted By gopalss
generating the variable list for WHILE READ statement at runtime
Hi, I am reading the contents of a file in variables as -

cat ${var_file_name} | while read COL1 COL2 COL3 COL4 COL5 COL6 COL7 COL8 COL9 COL10 COL11


The problem is ... my file can have any...
9,511
Posted By gopalss
variable name with dot(.)
Hi,

Is it possible to declare variable with name having dot(.) in it ?

something like gs.test='HELLO'

Thanks in advance :)
9,623
Posted By gopalss
It's working!!! Thanks. :)
It's working!!!

Thanks. :)
9,623
Posted By gopalss
find and replace pattren in file
Hi,

I have the input file having data as follow:
file1.txt
001 aaa_1:abcd
002 bbb_2:abcd

I want output as,
001xabcd
002xabcd

Here iam trying to replace "{1 space}{alphanumeric string...
Showing results 1 to 7 of 7

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