Delete Duplicate Lines

Contents  Previous  Next


Menu: Edit > Delete > Duplicate Lines


Default Shortcut Key: none


Macro function: DeleteDuplicateLines()


The Delete Duplicate Lines command can be used to delete duplicate lines within the current file.  If a range of lines is selected, the operation will be restricted to the selected lines.  Due to the destructive nature of this command, a confirmation is required before the operation begins.


Delete Duplicate Lines will not delete the first instance of a duplicated line.  In other words, given a file that contained five lines with the text 'sample', four of these lines would be deleted.


bm1This command is similar in effect to the Find Unique Lines and  Find Distinct Linescommands.  For certain tasks, one of these commands might be more suitable.


bm2To delete blank lines, use the Delete Blank Lines command.