--jKBxcB1XkHIR0Eqt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable
Alas! Philip Mak spake thus: > On Tue, Feb 05, 2002 at 12:46:17AM +0800, Charles Jie wrote: > > 2. The 'ls' don't group directories/files into two part. > > - If you code something to achieve it, you lose the COLORs. >=20 > Try typing this and see if it does what you want: >=20 > ls -d `find * -type d -maxdepth 0`; ls `find * -type f -maxdepth 0` Why not just do 'ls -AlF|sort'? That way all lines showing a directory will start with 'd', and all lines that are files will start with '-' (also, character devices will start with 'c', block devices will start with 'b', and symlinks will start with 'l'). Then you get an alphabetic listing, it automatically puts the directories first. If you really don't like all that verbosity, you could tack on a sed that only shows what you want to see. --=20 Rob 'Feztaa' Park [EMAIL PROTECTED] -- "... Microsoft follows standards. In much the same manner that fish follow migrating caribou." "Now I have this image in my mind of a fish embracing and extending a caribou." -- Paul Tomblin and Christian Bauernfeind in a.s.r --jKBxcB1XkHIR0Eqt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8XtSDPTh2iSBKeccRAitZAJ4nb1PZtjIGimLfON7EnsdsxOfqgwCfR8yZ NMQwJ1GCBbRi1yw5ZyzVSAs= =Y5kB -----END PGP SIGNATURE----- --jKBxcB1XkHIR0Eqt--