[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: im bashskript nach $@ greppen



Am 2005-08-21 10:40:40, schrieb Bastian Venthur:
> Hi Liste,

> Und bitte keine Perl- oder Pythonlösungen. Ich suche wirklich nach einer
> shell-Lösung.

:-)

Das einzige was mir dazu eingefallen ist, währe 

    $STRING=`echo $@ |sed -E "s/\ /|/"`
            ... | grep -e "$STRING" | ...

oder du schreibst $@ in eine Datei wie

    for VAL in $@ ; do
      echo $VAL >$tmpfile
    done
            ... | grep --file=$tmpfile | ...
    rm $tmpfile

> Schöne Grüße
> 
> Bastian

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: