I have a text file with many lines containing ------- (1 or more hyphens) and i need to remove them.
i used grep -v "-----" <file1> > <file2> BUT it does not work as hyphen exists. i tried \ (backslash) for escape sequence and double quotes etc. to get no improvement.
Pl help me how can i remove the lines containing >=5 hyphens (e.g., ----- )