[A83] Re: Converting programs....
[Prev][Next][Index][Thread]
[A83] Re: Converting programs....
Why not just use "sort"? Combinding text files and removing duplicate lines
is very easy:
cat file1.txt file2.txt | sort | uniq > newfile.txt
You'll won't want to do that with the straight include files, though, as
they'll have preprocessor stuff (like #ifdef). Just cut the blocks of
equates, put them in a file, and run them through sort and uniq:
cat file.txt | sort | uniq > newfile.txt
> The sort feature on a good text editor (like Textpad) can find duplicate
> equates easily, so you can delete them.
References: