I've switched over to the RPM packaged tools on my box, so for me which sed brings up:
bash-4.4$ which sed
/QOpenSys/pkgs/bin/sed
bash-4.4$
On Mon, 2020-10-12 at 11:13 -0400, John Yeung wrote:
The former two work always, because standard unix-type I/O-redirection. The latter only in recent implementations of GNU sed. Maybe available in recent PASE (call qp2term).
I don't think it makes a difference whether you use QSH or PASE for
this. You will probably always get
/QOpenSys/usr/bin/sed
on any reasonably modern system. This is easily tested by issuing
which sed
at whatever shell you're using.
Speaking of which, I realize I am very weak in Unixy skills, but I
think the "use PASE instead of QSH" thing is way, way overblown. I
literally NEVER use the QP2* commands. If it doesn't work in QSH, then
you might as well not bother doing it on the green screen at all and
just log in using SSH already. I'd say this applies to almost all IBM
i users, and almost all IBM i use cases. If you don't already know
whether you need to use QP2*, then the odds are incredibly strong that
you do not need QP2*.
John Y.
[
https://www.medtronsoftware.com/img/MedtronMinilogo.bmp] Kevin Bucknum
Senior Programmer Analyst
MEDDATA / MEDTRON
120 Innwood Drive
Covington LA 70433
Local: 985-893-2550
Toll Free: 877-893-2550
https://www.medtronsoftware.com
CONFIDENTIALITY NOTICE
This document and any accompanying this email transmission contain confidential information, belonging to the sender that is legally privileged. This information is intended only for the use of the individual or entity named above. The authorized recipient of this information is prohibited from disclosing this information to any other party and is required to destroy the information after its stated need has been fulfilled. If you are not the intended recipient, or the employee of agent responsible to deliver it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or action taken in reliance on the contents of these documents is STRICTLY PROHIBITED. If you have received this email in error, please notify the sender immediately to arrange for return or destruction of these documents.
As an Amazon Associate we earn from qualifying purchases.