Search Results

Search: Posts Made By: Akshay Hegde
1,171
Posted By Akshay Hegde
awk 'NR==FNR{ # Read file2 first and then ...
awk 'NR==FNR{
# Read file2 first and then
# create hash using column1 ($1) as index and column2 ($2) as element
# if index $1 is already exists then append current line $2 to existing...
1,171
Posted By Akshay Hegde
Try awk 'NR==FNR{ h[$1] =( $1 in h ) ?...
Try

awk 'NR==FNR{
h[$1] =( $1 in h ) ? h[$1] OFS $2 : $2
next
}
{
if(split(h[$1],part,OFS)>1)
{
for(i in part)
{
print $0 OFS part[i]
}...
Showing results 1 to 2 of 2

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