From owner-freebsd-questions@FreeBSD.ORG Thu Jun 11 08:14:36 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4688C1065672 for ; Thu, 11 Jun 2009 08:14:36 +0000 (UTC) (envelope-from j.mckeown@ru.ac.za) Received: from a.mail.ru.ac.za (a.mail.ru.ac.za [IPv6:2001:4200:1010::25:1]) by mx1.freebsd.org (Postfix) with ESMTP id 6E7828FC0A for ; Thu, 11 Jun 2009 08:14:35 +0000 (UTC) (envelope-from j.mckeown@ru.ac.za) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=ru-msa; d=ru.ac.za; h=Received:From:Organization:To:Subject:Date:User-Agent:References:In-Reply-To:X-Face:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id:X-Virus-Scanned:X-Authenticated-User; b=IvobPfJnYE20CAGWxLAPzjgVDaaGct9+MPIxDx2RRoBe7v9Hp/4ZYSMNhWojAsuFjc/jboYXI1/M0s88HJR8B+I+bhtGWx9F51OqS9bjfIoj3QLy4nBMPj7tB1THpinr; Received: from vorkosigan.ru.ac.za ([2001:4200:1010:1058:219:d1ff:fe9f:a932]:57839) by a.mail.ru.ac.za with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MEfQf-000LRG-TW for freebsd-questions@freebsd.org; Thu, 11 Jun 2009 10:14:33 +0200 From: Jonathan McKeown Organization: Rhodes University To: freebsd-questions@freebsd.org Date: Thu, 11 Jun 2009 10:14:33 +0200 User-Agent: KMail/1.9.10 References: <20090610190606.6B89ABEDB@kev.msw.wpafb.af.mil> In-Reply-To: <20090610190606.6B89ABEDB@kev.msw.wpafb.af.mil> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Virus-Scanned: a.mail.ru.ac.za (2001:4200:1010::25:1) X-Authenticated-User: s0900137 from vorkosigan.ru.ac.za (2001:4200:1010:1058:219:d1ff:fe9f:a932) using auth_plaintext Subject: Re: Need a filesystem with "unlimited" inodes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2009 08:14:36 -0000 On Wednesday 10 June 2009 21:06:06 Karl Vogel wrote: > Create 256 folders named 00-ff: > > =A0 =A0 =A0 =A0#!/bin/sh > =A0 =A0 =A0 =A0hex=3D'0 1 2 3 4 5 6 7 8 9 a b c d e f' > =A0 =A0 =A0 =A0for x in $hex ; do > =A0 =A0 =A0 =A0 =A0 =A0for y in $hex ; do > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0mkdir ${x}${y} > =A0 =A0 =A0 =A0 =A0 =A0done > =A0 =A0 =A0 =A0done > =A0 =A0 =A0 =A0exit 0 Or use jot(1) instead of two for loops: for i in `jot -w %02x 256 0`; do mkdir $i; done To see the output of the jot in a readable format: jot -w %02x 256 0 | rs 0 16 Jonathan