Search Results

Search: Posts Made By: vatigers
2,338
Posted By vatigers
I did look at those links. I tried awk -F:...
I did look at those links.
I tried awk -F: 'x[$1]++ { print $1 " is duplicated"}' fileName

The output I get is
is duplicated

I want the duplicate value along with the line number
2,338
Posted By vatigers
Find duplicates in file with line numbers
Hello All,

This is a noob question. I tried searching for the answer but the answer found did not help me .

I have a file that can have duplicates.
100
200
300
400
100
150

the...
Showing results 1 to 2 of 2

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