Find searches for things at the beginning of a record. Locate searches anywhere within a record. Given that you didn¹t do a split to put the userids on separate lines, I¹d think that ³pipe cms q n | locate /ESA/ | console² would work better.
Also, q n is a CP command, not a CMS, so actually, you¹d want ³cp q n² as the first stage, just to avoid someone creating a ³q² exec and messing you up. To really get down to the meat of it, you¹d want to do something like: ³pipe cp q names | split at /,/ | strip leading blank | locate /ESA/ | console² Someone will argue that the strip should be after the locate for efficiency sake, and that would be true for a huge list. For Q N, it shouldn¹t be an issue. -- .~. Robert P. Nix Mayo Foundation /V\ RO-OE-5-55 200 First Street SW / ( ) \ 507-284-0844 Rochester, MN 55905 ^^-^^ ----- "In theory, theory and practice are the same, but ³Join the story... Ride Ural.² in practice, theory and practice are different." On 7/27/07 1:11 PM, "Lionel B. Dyck" <[EMAIL PROTECTED]> wrote: > > I'm learning pipes in cms and am trying to issue a 'q n' command and filter it > to only display selected names. > > I'm trying this with no success - can someone educate me on what I'm doing > wrong: > > pipe cms q n | find ESA | console >
