Hi all!
Do you know a plugin that can remove duplicate lines when editing a file?
For example i've this file
----------------
123
124
123
125
126
123
135
----------------
If i issue the command "Remove duplicate line" the resulting files will be:
----------------
123
124
125
126
135
----------------
Think about If we ve a file with 100000 lines it will be a great help such plugin!
Any clue? ...thanks for any suggestion!
PS: I can think about some other functions for such plugin like for example:
- "Keep duplicate line"
- "Keep diffrent line"
- "Keep unique line"
- "Custom template"
Remove duplicate lines in a file...
Hi
I don't know if there is a plugin that does what you want but I would use two
commandline commands "sort" and "uniq" that would sort and remove duplicate lines.
You could make a macro or something in Far manager.
"Sort" is included in windows just use "sort /?" to get help.
"uniq" is a unix command port to win32 from this tool pack http://unxutils.sourceforge.net/
I don't know if there is a plugin that does what you want but I would use two
commandline commands "sort" and "uniq" that would sort and remove duplicate lines.
You could make a macro or something in Far manager.
"Sort" is included in windows just use "sort /?" to get help.
"uniq" is a unix command port to win32 from this tool pack http://unxutils.sourceforge.net/
For sorting in the editor there is "String sorter" plugin.
http://plugring.farmanager.com/cgi-bin/ ... hText=uniq
http://plugring.farmanager.com/cgi-bin/ ... hText=uniq
He He... Thanks For The Tips jonib I've Already Have The Sort Plugin Installed...
...Now My File Appear Like...
----------------
123
123
123
124
125
126
135
----------------
...I'll Try To Look At The Uniq Tool... But I'll Be A More Elegant Solution To Have A Far Native String Manipulation Plugin
...I'm Thinking About At Some RegExp Functions But I'm Not So Good At Programming Them
...Now My File Appear Like...
----------------
123
123
123
124
125
126
135
----------------
...I'll Try To Look At The Uniq Tool... But I'll Be A More Elegant Solution To Have A Far Native String Manipulation Plugin
...I'm Thinking About At Some RegExp Functions But I'm Not So Good At Programming Them