in reply to finding and deleting repeated lines in a file
The -i.bak gives you an effective in-place edit with a back-up in file.bak.
-- John.