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

Re: For the love of GOD!!!



Bob Proulx wrote:
> Andrew Nelson wrote:
> 
>>Andrew Nelson wrote
>>
>>>I have no idea what the cause might be but I guess you could do something like
>>>
>>>ls -la | awk '$9 ~ /^\./ {print}'
>>>
>>>Although you would then loose colors.
>>
>>You could also do something along these lines.
>>
>>ls -lda `ls -a1 | awk '/^\./ {print}'`
> 
> 
> Setting your collating sequence explicitly is better.
> 
>   export LC_COLLATE=C
> 

I thought the question was to get rid of non "." files all together not simply
to put "." files and the top and non "." files at the bottom.  My mistake.

Although it seems this is far more difficult that it should be to remove all non
"." file from the output of ls.  Does any one know of a better way?

//andy



Reply to: