Hi All,
I have a file with 7500 lines in, some of the lines of data are duplicate line.... I would like a one line command that will search through the file and pull out one entry of each duplicate line and show it to screen or file?
If I do
#grep fred file1
I'll get all the lines that have "fred" in it printed to screen... all I am after is one printed to screen or file.
I hope you know what I mean.
Thanks in advance
Terry
I have a file with 7500 lines in, some of the lines of data are duplicate line.... I would like a one line command that will search through the file and pull out one entry of each duplicate line and show it to screen or file?
If I do
#grep fred file1
I'll get all the lines that have "fred" in it printed to screen... all I am after is one printed to screen or file.
I hope you know what I mean.
Thanks in advance
Terry