0

I have a file containing data.

This file could contains duplicated lines.

The line could be repeated many times in the files

I want to remove the duplicated lines (Of curse I have to keep only one copy of a line if the line is duplicated)

For example if my file is containing:

aaa1,bbb1,ccc1
aaa2,bbb2,ccc2
aaa1,bbb1,ccc1
aaa3,bbb3,ccc3
aaa2,bbb2,ccc2

After executing the command the file should contain:

aaa1,bbb1,ccc1
aaa2,bbb2,ccc2
aaa3,bbb3,ccc3

How to do that with linux shell bash?

MOHAMED
  • 38,769
  • 51
  • 148
  • 252

0 Answers0