Your default locale setting is probably different between RH and Debian?

Try the following:
    LANG=C ls -l | grep ^d | cut -c55-

Ashleyb
----- Original Message ----- From: "Tong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 09, 2004 10:09 PM
Subject: Get directories names



Hi,

I used to use the following command/alias to get the names under the
current directory in RH:

ls -l <criteria> | grep ^d | cut -c57-

but in Debian, the position of the file name is not fixed.

How do you get it? Thanks

tong




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]






--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Reply via email to