[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Unsubscribe ml@cervus.nl




-----Oorspronkelijk bericht-----
Van: Maurits van Rees [mailto:maurits@mauritsvanrees.xs4all.nl] Namens
Maurits van Rees
Verzonden: donderdag 11 november 2004 20:42
Aan: debian-user@lists.debian.org
Onderwerp: Re: How about links (was: Get directories names)


On Thu, Nov 11, 2004 at 02:23:13PM -0500, Tong wrote:
> On Tue, 09 Nov 2004 16:56:06 -0600, Alex Malinovich wrote:
> > To get a list of directories in the CURRENT directory, just do:
> > 
> > ls -d */
> 
> Ok, the problem of directories names solved. Now, how about links?

I don't know of an easy way with `ls' here, so I think `find' is best.
To find all links in this and all subdirs:
 
find . -type l

or just in this dir:
find . -type l -maxdepth 1

without dotfiles:
find . -type l -maxdepth 1 -name "*"


`man find` will give you more options than you should ever need. :)

-- 
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands] "Let
your advance worrying become advance thinking and planning."
 - Winston Churchill


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



Reply to: