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

Re: (OT) Hilfe zu sed?



Hello Jim Knuth,

Am 2011-03-31 21:24:23, hacktest Du folgendes herunter:
> Hallo,
> 
> Sorry für den Titel. Mir is nix anderes eingefallen.
> Ich habe hier eine Liste (/etc/passwd) mit folgenden Einträgen:
> 
> web10p1:x:1177:5000::/home/mail/web10p1:/bin/false
> 2. Eintrag
> etc
> 
> daraus soll eine neue Liste als /etc/dovecot/passwd-file
> generiert werden, die dann SO sein muss:
> 
> web10p1:x:1177:5000::/home/mail/web10p1::userdb_mail=maildir:~/Maildir
> 2. Eintrag
> etc.
> 
> Also das /bin/false abschneiden und an die Stelle
> :userdb_mail=maildir:~/Maildir einfügen.

echo "${PASSWD_STRING}" |sed "s|:/bin/false|::userdb_mail=maildir:\~/Maildir|"

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle@jabber.ccc.de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Attachment: signature.pgp
Description: Digital signature


Reply to: