Name: Palsanthi Date: July 8, 2005 at 00:29:55 Pacific Subject: to remove duplicate lines from file OS: unix CPU/Ram: 1.8 GHZ / 256 MB
Comment:
hai, i want to remove duplicate lines from any part of the file...uniq command is used to remove only the adjacent duplicate lines...if we use sort command with -u option it removes duplicate lines from any part of the file,but the file is sorted...i dont want the file to be sorted,but i want to remove duplicate lines from any part of the file.... this is my problem...if anybody knows answer for this please reply....
My requirement is little different, actually I have 2 files, one of the file has 800 line another has 50. No I wanted to check with respect to first file if there are any duplicate lines in 2nd file. And if it is present then the output file should remove that line from the 800 lines. It should not add any lines of file2. Only it should check with respect to 1st file.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE