Re: Create functional processing pipe (without eval)?

Liste des GroupesRevenir à cu shell 
Sujet : Re: Create functional processing pipe (without eval)?
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.unix.shell
Date : 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


Date Sujet#  Auteur
7 May 25 * Create functional processing pipe (without eval)?10Janis Papanagnou
7 May 25 +* Re: Create functional processing pipe (without eval)?2Kaz Kylheku
7 May 25 i`- Re: Create functional processing pipe (without eval)?1Janis Papanagnou
7 May 25 +* Re: Create functional processing pipe (without eval)?3Lars Poulsen
7 May 25 i`* Re: Create functional processing pipe (without eval)?2Janis Papanagnou
7 May 25 i `- Re: Create functional processing pipe (without eval)?1Janis Papanagnou
7 May 25 `* Re: Create functional processing pipe (without eval)?4Ben Bacarisse
7 May 25  `* Re: Create functional processing pipe (without eval)?3Janis Papanagnou
7 May 25   `* Re: Create functional processing pipe (without eval)?2Christian Weisgerber
7 May 25    `- Re: Create functional processing pipe (without eval)?1Janis Papanagnou

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal