For example, sed -e '/WE/{h;d; }' -e '/CT/{G; }' datafile
when executing the first command '/WE/{h;d; }' it reads each line of the input file datafile.
I am curious when the last is reached and executing the second command 'CT/{G; }', this second command read again the each line of the input file datafile or not?
Thanks!