[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



Atte André Jensen wrote:

> Peter Makholm wrote:
> 
>> 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.
> 
> Tusind tak for hjælpen, ovenstående er ok, men jeg er forundret at man
> ikke kan sortere ls efter type. Desværre mister man farvekodningen ved
> ovenstående, så...

Så bare brug

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

-- 
| Christian Iversen       |     3:30 pm... 3:35 p... 3.. about 4 o'    |
| sslug@sslug |     clock... later that day                |



 
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] *