This is a one-liner. If you add in the '-ibck' flag then you can modify the file directly.
perl -ne 'next if $prev eq $_; print; $prev = $_'In reply to Re: Removing repeated lines from file
by diotalevi
in thread Removing repeated lines from file
by matth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |