I have several columns with different language translations for the word in the second column (POWERTRAIN CONTROL MODULE). I’m looking for an exact combination of words “POWERTRAIN CONTROL MODULE” only in the second column. Then I need the complete row of information piped into another file. I...
I tried the following command:
$ gawk ' {if ($2 == "POWERTRAIN CONTROL MODULE"); {print}}' trans.txt>output
.txt
and
$ gawk ' {if ($2 == "POWERTRAIN CONTROL MODULE"); {print $0}}' trans.txt>output
.txt
and I'm getting the complete trans.txt file in my output.txt file...
I’m trying to us the gawk command in Cygwin on Windows XP and I’m having a little trouble getting the exact results that I want. I was hoping I could get a little help. I’m searching for just POWERTRAIN CONTROL MODULE and I’m getting that and several other lines as well. I would like to get the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.