Remove next line after specific character
Given
$ cat file
.
I
am
Anders
<<
Thank
you
then
$ sed '/[.<]/{n;d;}' file
.
am
Anders
<<
you
and
$ sed '/[.<]/{N;d;}' file
am
Anders
you
Given
$ cat file
.
I
am
Anders
<<
Thank
you
then
$ sed '/[.<]/{n;d;}' file
.
am
Anders
<<
you
and
$ sed '/[.<]/{N;d;}' file
am
Anders
you