awk '!x[$0]++' <FileName> > <New FileName>
This blog provides some ready-made tips, tricks, tweaks & interview questions-answers on C, C++, Perl, Shell Scripting and UNIX Commands.
Thursday, September 13, 2012
How do you remove duplicate lines in a file in UNIX without changing order of contents?
Labels:
UNIX
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment