Search Results

Search: Posts Made By: Misa-Misa
1,034
Posted By clx
How about this.. awk '{a[$0]++} END { for...
How about this..

awk '{a[$0]++} END { for (i in a) { if (a[i]==3) print i}}' file*


EDIT : Ignore this solution. Doesn't meet the "consecutive" requirement you provided.
1,034
Posted By lorcan
cat file* | sort | uniq -c | head -2 If you...
cat file* | sort | uniq -c | head -2

If you dont want you can remove the count
Showing results 1 to 2 of 2

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