Search Results

Search: Posts Made By: manikantants
Forum: Linux 11-27-2008
3,733
Posted By manikantants
awk '{ if (NR==FNR) { my_array[$1]=$1; next;} if...
awk '{ if (NR==FNR) { my_array[$1]=$1; next;} if ( $1 in my_array ) {print $0}}' file1 file2

try above one liner. Not sure about the performance.
Showing results 1 to 1 of 1

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