Date: Wed, 22 Aug 2001 14:45:05 +0100 (BST) From: Alex Dyas <alex@twowaytv.co.uk> To: Odhiambo Washington <wash@wananchi.com> Cc: FBSD-Q <freebsd-questions@freebsd.org> Subject: Re: One for the script gurus Message-ID: <20010822144333.H91302-100000@r2d2.twowaytv.co.uk> In-Reply-To: <20010822163649.B98728@ns2.wananchi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Assuming you're only interested in home directories, this is one way of doing it: for dir in `grep '\/home' /etc/passwd | cut -d':' -f6`;do mkdir $dir;done alex.. On Wed, 22 Aug 2001, Odhiambo Washington wrote: > You have your /etc/passwd file and from it you want to create a home > directory for every user in it. I am imagining how to extract that info > from the file and use it to feed some script that would do what I want. > I am imagining some emergency situation where my /home tape backup has > goofed. > I leave it you to, please. > > Thanks. > > -Wash > > -- > Odhiambo Washington > Wananchi Online Ltd., > wash@wananchi.com 1st Flr Loita Hse. > Tel: 254 2 313985 Loita Street., > Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE. > > In case of doubt, make it sound convincing. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010822144333.H91302-100000>