Search Results

Search: Posts Made By: jhaneyzz
2,067
Posted By jhaneyzz
I just got it to work: myResult=$(awk -F"\t" -v...
I just got it to work:
myResult=$(awk -F"\t" -v lookupVal="$luVal" '$1 == lookupVal { print $2 }' "$inputFile")

I had to use "\t" for the tab character syntax.

Thanks for all your help.
...
2,067
Posted By jhaneyzz
I did try some research
I did in fact, read the man pages and online examples, but there were so many differences to approach and syntax that I just got pretty mixed up.

Thanks for your assistance.
2,067
Posted By jhaneyzz
Help with awk issue
Because I'm a noob. by all means tell me how I ought to be doing it, I want to learn.
2,067
Posted By jhaneyzz
Help with awk issue
OK, so I am trying to use awk as a method of accessing a table stored in a file to then provide the capability of a look up table.

The table is stored in a file named...
Showing results 1 to 4 of 4

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