I'm wondering if anybody could suggest a way to duplicate the contents of a file, in such a way that the duplicates have been altered?
For example, file pre duplication:
File post duplication:
Nempar|EIJ87098.1 Ecanceri1|ORD93056.1 Nempardup|EIJ87098.1 Ecanceridup|ORD93056.1
I don't need the alteration to be in any particular location or any particular character. Just that it marks the duplicates.
Currently, I'm simply using:
cat file.txt file.txt > file.dup.txt
Is there any way I can just add on top of this, or is cat too simple?