[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] ls, dirs først



Jon Bendtsen <sslug@sslug> writes:

>>> Er det muligt at få ls til at vise først directories, dernæst
>>> symbolske links og sidst filer? Har kikket på "man ls", men fandt
>>> ikke
>>> nålen i høstakken...
>>
>> Nej.
>
> indirekte kan man jo nok?
>
> lav et script som viser de 3 forskellige slags filer?
> Evt. via find?

Ja, man kan med andre værktøjer:

for type in d l f ; do find . -maxdepth 1 -type $type -print0 | \
 xargs -0 ls -ld ; done

Eventuelt kan man tilføje b, c, p og s til listen af typer.

-- 
 Peter Makholm     |                The four letter word beginning with L?
 sslug@sslug |                It's life, love, libc or lisp         
 http://hacking.dk |                    --  Depending on you point of view


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2006-07-01, 02:02 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *