From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4576BA24.2070609@vzljot.ru> Date: Wed, 06 Dec 2006 15:40:04 +0300 From: Vitaly Ostanin User-Agent: Thunderbird 1.5.0.5 (X11/20060822) MIME-Version: 1.0 To: ALT Linux Community X-Enigmail-Version: 0.94.1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig225C88419D31F71AD3983007" X-Virus-Scanned: by amavisd-new at vzljot.ru Subject: [Comm] test -d on directory with space in name X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2006 12:40:24 -0000 Archived-At: List-Archive: List-Post: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig225C88419D31F71AD3983007 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5. =F3=CB=C1=D6=C9=D4=C5, =C7=C4=C5 =D1 =D4=D5=D0=CF=CA, =C1? =F7 =DC=D4=CF=CD =D3=CB=D2=C9=D0=D4=C5 =CE=C5 =D7=D9=D0=CF=CC=CE=D1=C5=D4= =D3=D1 =D0=D2=CF=D7=C5=D2=CB=C1 [ -d "$FILE" ], =C5=D3=CC=C9 =D7 =C9=CD=C5=CE=C9 $FILE =C5=D3=D4=D8 =D0=D2=CF=C2=C5=CC=D9. =F7 =CB=CF=CD=C1= =CE=C4=CE=CF=CA =D3=D4=D2=CF=CB=C5 =D4=C1=CB=C1=D1 =D0=D2=CF=D7=C5=D2=CB=C1= =D0=D2=CF=C8=CF=C4=C9=D4 =D5=D3=D0=C5=DB=CE=CF. #!/bin/sh do_du() { du -sbx * | sort -rn | while read f; do echo $f FILE=3D`echo $f | cut -d ' ' -f2-` if [ -d "$FILE" ]; then echo "^^^dir^^^" cd "$FILE" do_du fi done } do_du --=20 Regards, Vyt mailto: vyt@vzljot.ru JID: vyt@vzljot.ru --------------enig225C88419D31F71AD3983007 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFdrooXQgvvSRg+k4RArc3AKCghWJEizqMIknB4FNcVuydu0QXbgCdEDhU KfN6Ivi1xy1HAcNRwYCbC7w= =Sftm -----END PGP SIGNATURE----- --------------enig225C88419D31F71AD3983007--