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

Re: shell-script und konfigurationsdateien



Am 2006-08-17 00:24:35, schrieb Andreas Pakulat:

> Kannst du nicht einfach etwas in der Art machen:
> 
> sed -i 's/wert1=.*/wert1="neuerwert"/' config-datei

Das wird nicht funktionieren, denn neuerwert wird warscheinlich
dynamisch sein, also besser

    sed "s/wert1=.*/wert1=\"neuerwert\"/" config-datei >config-datei.tmp
    mv -f config-datei.tmp config-datei

Greetings
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant


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



Reply to: