Search Results

Search: Posts Made By: newtoawk
3,266
Posted By newtoawk
thanks Pravin, it worked. Can I pass the field...
thanks Pravin, it worked. Can I pass the field delimiter as a variable.B'cas I need to read the output format from a file.
for ex: instead of nawk -F'|' -- can I do it something like this...
3,266
Posted By newtoawk
thanks a lot Pravin ..it works fine ...my compare...
thanks a lot Pravin ..it works fine ...my compare fields would change ..so I can not hardcode the vaule in for (j=1;j<=6;j++).

I tried couple of things like for (j=1;j<=NF;j++) ..the result set...
3,266
Posted By newtoawk
Thanks a lot Pravin, wish you happy deepavali to...
Thanks a lot Pravin, wish you happy deepavali to you. I ran the script and this is the output I got.
Y|adbc|Y|Y|Y|
Y|juio|Y|Y|Y|

Can you please explain me the code, so that I can make changes...
3,266
Posted By newtoawk
Compare columns of 2 files based on condition defined in a different file
I have a control file which tells me which are the fields in the files I need to compare and based on the values I need to print the exact value if key =Y and output is Y , or if output is Y/N then I...
Showing results 1 to 4 of 4

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