In sam, g has two uses - either as a guard or after an s command where all substitutions are made Quoting sam(1) (available at ) after an s command: > If the command is followed by a g, as in >                s/x/y/g, all matches in the range are substituted. as a guard: > g/regexp/ command > v/regexp/ command >                If the range contains (g) or does not contain (v) a >                match for the expression, set dot to the range and run >                the command. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Te7fcdc06a68bb777-Md69f4d24cf42efd3c4ceca26 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription