bengalliboy
MIS
Would it be possible to read/retreave distinct values of a text from a text file?
MY file is:
ABCD12345
ABCD234
CDGX345
CSGX456
I am using cut command that is reading from 1st position to 4th position some thing like this:
cut -c1-4 my_text_file
This does retrieve all the rows but not distinct:
ABCD
ABCD
CDGX
CDGX
Is there a way to group by this text or get the distinct value of this text? TIA
MY file is:
ABCD12345
ABCD234
CDGX345
CSGX456
I am using cut command that is reading from 1st position to 4th position some thing like this:
cut -c1-4 my_text_file
This does retrieve all the rows but not distinct:
ABCD
ABCD
CDGX
CDGX
Is there a way to group by this text or get the distinct value of this text? TIA