On Mon, Mar 31, 2003 at 10:47:08AM +0530, Mario Michael da Costa wrote:
> > >The following alias will list just
> > >the directories in a directory and
> > >not other ordinary files. It will
> > >list a directory as a directory even
> > >if the directory is a symbolic link.
> > >
> > >alias dir='ls -Lla|grep ^d'
>
> ls -F | grep /
> works for me. never tried with symbolic links to directories though.
My way is:
[EMAIL PROTECTED]:(26) type -a ld
ld is a function
ld ()
{
ls -lF $* | grep ^d
}
ld is /usr/bin/ld
(I don't use /usr/bin/ld from the command line).
Advantages? I can give command line arguments, like:
ld /var /usr/local /opt
ld -g /var
The above don't work in the alias.
Binand
--
Russian Roulette with Unix:
while :; do kill $RANDOM &> /dev/null && break || sleep 1; done
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help