Search Results

Search: Posts Made By: vamsikrishna928
1,072
Posted By Kibou
Just this little detail in case our friend...
Just this little detail in case our friend doesn't know how to add a Field Separator,
1,072
Posted By Akshay Hegde
Try Something like this awk...
Try Something like this

awk 'FNR==NR{A[$1];next}{for(i=1;i<=NF;i++){ if($i in A){ print $1,$2 ; next } }}' FILEA FILEB
1,634
Posted By Don Cragun
Is the text marked in red above your way of...
Is the text marked in red above your way of saying: "I'm sorry I gave you bad information about my input file format; the field separator is a comma instead of a vertical bar. Can you please help me...
1,634
Posted By Scrutinizer
Try: awk 'NR==FNR{A[$1]; next} {for(i=1;...
Try:
awk 'NR==FNR{A[$1]; next} {for(i=1; i<=NF-5; i++) if($i in A) print $i, $(i+1), $(i+4), $(i+5)}' fileA FS=\| OFS=\| fileB
2,689
Posted By Chubler_XL
I'm surprised this didn't work for you. It...
I'm surprised this didn't work for you.

It looks like your grep supports -w as you didn't get any errors about unknown parameters. What OS are you doing this on?

Perhaps the files are in DOS...
Showing results 1 to 5 of 5

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