Hi I have a csv file whose content is like

```
NAME,AGE
abc,12
def,13
NAME,AGE  ##here duplicates :though these are column names
sdd,34
krgj,656

```

I tried a sort command to do that as:

```
sort -u file.csv -o file.csv

```

but all the duplicate rows got dropped(kept the last one ), but i need to keep the first one , so that I can have my column/header safe.

Please help in this regards.