I don't quite understand how to solve my problem even though I have been using grep
, uniq
and sort
before. I would very much appreciate how to crack this up :)
I wanted to get the uniq
of the first 6 characters from my input file and get the output as shown below. I don't know if it's uniq
, grep
, awk
I need to use, maybe someone could give me a hand in this.
My file looks like this:
Field1 Filed2 Field3
value1 some_stuff something
value2 another fake
value1 fake value
value3 blah blah
value2 blah fake
Prefered output:
Field1 Field2 Field3
value1 some_stuff something
value2 another fake
value3 blah blah