When you say doesn't work at all what does that mean? You're not getting
the output you expect?
I just issued this on my z/OS 3.1 system
ps -ef | /bin/grep /usr
and received this result
OMVSKERN 83886091 1 - Nov 11 ? 0:00 /usr/sbin/inetd
/etc/inetd.conf
ZWESVUSR 43 83886163 - 20:06:26 ? 0:17
/usr/lpp/IBM/cnj/v18r0/IBM/node-v18.19.0-os390-s390x-202d
OMVSKERN 33554479 33554485 - 08:11:31 ? 0:00 /usr/sbin/sshd -f
/etc/ssh/sshd_config -R
OMVSKERN 16777264 67108920 - 10:52:43 ? 29:33
/usr/lpp/zosmf/liberty/lib/native/zos/s390x/bbgzsrv --clr
OMVSKERN 67108915 33554485 - 09:39:34 ? 0:00 /usr/sbin/sshd -f
/etc/ssh/sshd_config -R
OMVSKERN 52 33554485 - 09:39:54 ? 0:00 /usr/sbin/sshd -f
/etc/ssh/sshd_config -R
OMVSKERN 33554485 1 - Nov 11 ? 0:00 /usr/sbin/sshd -f
/etc/ssh/sshd_config
SSHD 58 67108915 - 09:39:34 ? 0:00 /usr/sbin/sshd -f
/etc/ssh/sshd_config -R
SSHD 59 52 - 09:39:54 ? 0:00 /usr/sbin/sshd -f
/etc/ssh/sshd_config -R
ZWESVUSR 83886163 16777360 - 20:06:25 ? 0:04
/usr/lpp/IBM/cnj/v18r0/IBM/node-latest-os390-s390x//bin/e
OMVSKERN 114 67108913 - 10:52:33 ? 0:00
/usr/lpp/liberty_zos/current/lib/native/zos/s390x/bbgzan1
OMVSKERN 186 33554520 - 08:12:53 ttyp0000 0:00 /bin/grep /usr
ZWESVUSR 190 83886163 - 20:06:26 ? 0:05
/usr/lpp/IBM/cnj/v18r0/IBM/node-v18.19.0-os390-s390x-202d
Note, I generally run the zOpen tools on my system. Because of this I
specified /bin/grep to ensure I was using the z/OS provided grep.
I might have missed it but what OS are you running and do you have other
utilities installed like Rocket Tools, zOpen Utilities or only z/OS
supplied tools.
Also, I run with zsh as my default shell.
On Mon, Nov 24, 2025 at 9:24 PM Rob Schramm <
[email protected]> wrote:
> You I will try the code page. And the quotes.
>
> Rob
>
> On Mon, Nov 17, 2025, 7:07 PM Seymour J Metz <[email protected]> wrote:
>
> > What is the code point for | in your locale? If the solid bar doesn't
> > work, try the broken bar.
> >
> > --
> > Shmuel (Seymour J.) Metz
> > http://mason.gmu.edu/~smetz3
> > עַם יִשְׂרָאֵל חַי
> > נֵ֣צַח יִשְׂרָאֵ֔ל לֹ֥א יְשַׁקֵּ֖ר
> >
> >
> >
> >
> > ________________________________________
> > From: IBM Mainframe Discussion List <[email protected]> on behalf
> > of Rob Schramm <[email protected]>
> > Sent: Monday, November 17, 2025 11:10 AM
> > To: [email protected] <[email protected]>
> > Subject: Grep - used to work?
> >
> >
> > External Message: Use Caution
> >
> >
> > This is going to be a weird question.. mostly because I thought this used
> > to work.. but I am sure if this is a human memory error or thing have
> > changed and I missed it.
> >
> >
> > ps -ef | grep /usr
> >
> > This used to show me everything that had a /usr in it.
> >
> > Now it doesn't work at all.
> >
> > Any ideas?
> >
> >
> > Rob Schramm
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-MAIN
> >
> >
> >
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-MAIN
> >
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN