Oliver,

        If a script is OK, here are a couple of commands that might work
for you :

find . -type d -maxdepth 1 | sed 's/\.\///' | sort -g
find . -type f -maxdepth 1 | sed 's/\.\///' | sort -g

        The first line will produce the directory list and the second one
will produce the file list.

Regards,
Kenneth

On Thu, 19 Jul 2001, Oliver Ob wrote:

> Ok this is the 3rd try now, I hope someone opens his mind and is
> capable of helping me out with maybe a script or at least a pointer
> to a file or also any appreciated idea:
> 
> 
> I wrote:
> 
> ///
> I set some aliases like alias $='ls -alX', and now I am experiencing
> that I do not get what I wanted. 
> 
> I would like the appearance of the LS output to be like under good old
> dos with "doscmd=/o:gen" or "dir /o:gen", that is directories sorted 
> in a-z order FIRST, then the a-z sorted FILES.
> 
>  Any thoughts?
> \\\
> 
> The apperances of dir /o:gen under DOS 6.2x environment looks
> sort of this:
> 
> DIRs a-z
> FILEs a-z
> 
> Anyhow, I tried this under Suse 7.0 and I seem not to get what I want.
> 
> Does anyone have a solution/hint/script for that?
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
> 

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to