i am not programmer, but i would like some help to remove duplicate lines in a document and keep only original lines. i was trying to do this with some text processors, editpadpro, but since my file is more than 1 gigabyte, always gets frozen and can't complete the operation.
i know perl is very good at this, but i don't know how to use it, keeping in mind that the file can be over 1 or 2 gB.
example of input lines:
line 1
line 2
line 3
line 1
line 2
line 4
line 1
example of output lines:
line 1
line 2
line 3
line 4
i am sorry if this is very basic, but i really don't know how to proceed, most of the time i use built in functions, i hope not to annoy anyone with this question.