how can I list the identical words from below file using shell script ?
list.txt
LT
R
LT
MRTD
LT
MK
RR
RR
example result :
LT
R
MRTD
MK
RR
|
how can I list the identical words from below file using shell script ?
example result :
|
|||||
|
Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
Use sort, and uniq like this:
|
|||