Sujet : Re: Create functional processing pipe (without eval)?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shellDate : 07. May 2025, 16:19:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vvftml$13dk3$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 07.05.2025 17:07, Janis Papanagnou wrote:
On 07.05.2025 14:58, Lars Poulsen wrote:
>
I would like to have this king of feature wrapped around grep in order
to do compounded keyword searches, but it's not a high priority.
I recall I've done such with 'grep', simply transforming the
shell arguments to a 'grep' argument. It was simple, like
x=$*
grep -E '('"${x// /|}"')'
grep -E "${x// /|}"
...this should suffice (the parenthesis are not necessary).
Janis