Skip to content
Advertisement

Remove duplicates from each cell

I have a file like this and need to remove duplicates in each cell without changing the order or format

JavaScript

The missing data are noted as . (dot).

So far I have tried with awk

JavaScript

But it is killing the format. Is there any other way to do this ?

Expected output

JavaScript

Advertisement

Answer

with sed

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement