Thursday, July 16, 2015

Delete duplicate rows from flat file

Delete duplicate rows from flat file using UNIX commands


Step1:Sort the rows first using sort command
Sort sortoutputfile
Step2:Select unique rows from sorted file.
uniq sortoutputfile finaloutputfile

No comments:

Post a Comment