Here is my sed command:
echo -e "AB\nCD\nEF\nGH" | sed 'N; D;'
sed processing input line by line, what happens with the last line? (When after that
sed saw End-Of-File)? I mean the pattern buffer only contains 1 line.
It halts processing. From the sed manual:
So it never gets to the