Search Results

Search: Posts Made By: aaysa123
878
Posted By RudiC
Did you consider the comm command with its...
Did you consider the comm command with its selection parameters?


comm file[12]
1,A
2,B
3,C
4,E
8,K
795
Posted By RavinderSingh13
Hello aaysa123, Could you please try...
Hello aaysa123,

Could you please try following and let me know if this helps you.

awk '{print $0 ORS "go"}' Input_file
OR
awk '{print $0}' ORS="\ngo\n" Input_file
Output will be as...
1,602
Posted By Corona688
Thank you. join requires sorted input, so...
Thank you.

join requires sorted input, so isn't suitable here.

How about this:

$ awk -F, '{ A[$1]=A[$1] FS $2 ; T[$1]++ } END { for(X in T) if(T[X]>1) { print X A[X] } }' a.txt b.txt...
Showing results 1 to 3 of 3

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