There are probably no trailing blanks. You could 'pad 80' for example to make 
sure
you can check for G plus a trialing blank. But things can be simpler.

If you want to impress your friends, have a look at 'verify' in the book.

 | verify w5 /G/           /* Ensure there's only letter G in w5 */

If that's too simple, you could impress your friends with some pipethink.

 | locate w5 /G/           /* Ensure there is at least a G in w5 */
 | locate substr 2 of w5   /* Select when w5 is length 2 or more */

The 2nd locate only keeps the users that have more than just 'G' whether
it's 'BG' or 'GB' (but also 'GG' if DIRECTXA lets you).

PS As The Piper points out, modern plumbing makes it a lot simpler.

Rob

Reply via email to