Search Results

Search: Posts Made By: M@LIK
7,948
Posted By M@LIK
@Scrutinizer...
@Scrutinizer (https://www.unix.com/members/302052697.html)::
O.o
it was about awk not windows or dos??
yea.. on windows you have to use double quotes.. unix single quote.. thats a minor thing
and...
7,948
Posted By M@LIK
finally this has been mastered:: this could be...
finally this has been mastered::
this could be useful to some1::
gawk -F: "FNR==NR{a[($1)]=$2;next}$1 in a{print $0 FS a[$1]}"
^ matching field file1 ^ matching...
7,948
Posted By M@LIK
@chidori...
@chidori (https://www.unix.com/members/302097610.html)::
where did u get the "if" from?? there no any if in the one liner..
7,948
Posted By M@LIK
LOL... im used to it.. i just wanted him to...
LOL... im used to it..
i just wanted him to explain because i have a lot of similar cases.. and i dont like asking too much
7,948
Posted By M@LIK
@neutronscott:: i dont know how it works but it...
@neutronscott::
i dont know how it works but it does =D.. i guess i'll have to study it
thanks a bunch

---------- Post updated at 07:54 AM ---------- Previous update was at 06:07 AM ----------
...
7,948
Posted By M@LIK
@neutronscott:: actually the 1st one worked...
@neutronscott::
actually the 1st one worked very well.. THANKS
now please.. could u try the other request
7,948
Posted By M@LIK
@Corona68:: thanks.. but doesn't work with my...
@Corona68::
thanks.. but doesn't work with my files... nor with the examples given above..
i get no output at all..
im using gawk with windows.. maybe thats why??
i converted the quotes::
gawk...
7,948
Posted By M@LIK
hmmm.. no i actually meant to follow file_2.. ...
hmmm.. no i actually meant to follow file_2..
note:: it would be really great if some1 can explain both awk and join commands
7,948
Posted By M@LIK
Gawk on Windows: Joining lines only if 1st field matches
Hi..
i have two files::
file_1::
mOnkey
huMAnfile_2::
Human:hates:banana
i:like:***
Monkey:loves:banana
dogs:kill:catsdesired output::
Monkey:loves:banana
Human:hates:bananaso only when the...
Showing results 1 to 9 of 9

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