Hi,
i have a file like this:
...
11111111
22222222
33333333
#
4444444
5555555
6666666
7777777
#
...
i want just print the 2 first line between each section (each section is separated with "#"). so desired output would be like this:
...
11111111
22222222
#
4444444
5555555
#
...
i wrote this code, but it doesn't work!
awk 'BEGIN{RS="#";FS="\n"}{print $1,$2}' in > out