🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #23951

Re: Shellprogrammierung..

#23951
From: phippu
Date: Tue, 02 Mar 1999 00:00
26 lines
1391 bytes
Philippe Kehl <root@akiv.ethz.ch> wrote:
> Hallo!

> Folgendes: Mit den Quota-tools kann ich einem User bestimmte quotas
> zuordnen. Mit edquota -p protouser -u neueruser kann ich die quotas vom
> protouser auf den neueruser uebertragen. Nun, ich will das natuerlich
> nicht fuer alle user einzeln machen... da gibt es bestimmt irgendein
> Trick, die users aus dem passwd-file zu nehmen und dann fuer jeden
> einzeln das edquota -p .. -u .. ausfuerhren (eben, ohne alles selbst zu
> tippen). Die Frage ist: Wie?

> btw: Kennt jemand grad ein gutes Tutorial zum Thema (bash)?

Naja, ich wuerde sowas machen :

cat /etc/passwd | cut -d: -f1 | awk '{print "edquota -p protuser -u",$1}' | sh

COMMANDLINE RULES !!!!!

Cheers,
Philipp Nyffenegger
-- 
ASCOM AG		Tel. G.  : +41 (0)31 999 34 96
SISI Intranet/Internet	Tel. P.  : +41 (0)31 981 25 81
Belpstrasse 37		Tel. GSM : +41 (0)79 302 12 31
3000 Bern 14		Email    : nnyffp@ascom.com
Technical Details
Message-ID: <7bh1aq$e4k$1@ascomax.hasler.ascom.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36D6DAE9.B8CCDD35@akiv.ethz.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII-7-bit
X-Google-Thread: f4b73,399c09dcdbf441e1
X-Google-Attributes: gidf4b73,public
From: phippu@ascom.com
Subject: Re: Shellprogrammierung..
Date: 1999/03/02
Message-ID: <7bh1aq$e4k$1@ascomax.hasler.ascom.ch>
X-Deja-AN: 450396668
References: <36D6DAE9.B8CCDD35@akiv.ethz.ch>
Organization: pippo@home
User-Agent: tin/pre-1.4-980618 (UNIX) (SunOS/5.5.1 (sun4m))
Newsgroups: ch.comp.os.linux