Thank you for the clarification. This first usage conforms to ed. I am currently working slowly through "A Tutorial for the Sam Command Language" http://doc.cat-v.org/bell_labs/sam_lang_tutorial/ but I have yet gotten to this usage of "g" after "s".