Re: Get directories names

2004-11-11 Thread David Jardine
On Thu, Nov 11, 2004 at 11:42:29AM -0500, Tong wrote: > Thanks everybody for the respond. > > On Thu, 11 Nov 2004 09:57:21 -0500, Sudarshana Koushik wrote: > > > Hang on ppl. Whats wrong with what one of previous posts > > suggestedjust use ls -d */ (dont forget the '/') > > Yes, I think thi

Re: Get directories names

2004-11-11 Thread Ashley Baumann
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

Re: Get directories names

2004-11-11 Thread Tong
Thanks everybody for the respond. On Thu, 11 Nov 2004 09:57:21 -0500, Sudarshana Koushik wrote: > Hang on ppl. Whats wrong with what one of previous posts > suggestedjust use ls -d */ (dont forget the '/') Yes, I think this is the most elegant solution (should be much much faster than the fi

Re: Get directories names

2004-11-11 Thread Sudarshana Koushik
Hang on ppl. Whats wrong with what one of previous posts suggestedjust use ls -d */ (dont forget the '/') -- Sud accident, n.: An inevitable occurrence due to the action of immutable natural laws. -- Ambrose Bierce, The Devil's Dictionary -- To UNSUBSCRIBE, email to [EMAIL PROTECT

Re: Get directories names

2004-11-10 Thread Maurits van Rees
On Tue, Nov 09, 2004 at 10:32:40PM -0500, Travis Crump wrote: > David Jardine wrote: > >On Tue, Nov 09, 2004 at 05:09:51PM -0500, Tong wrote: > > > >>Hi, > >> > >>I used to use the following command/alias to get the names under the > >>current directory in RH: > >> > >>ls -l | grep ^d | cut -c57-

Re: Get directories names

2004-11-09 Thread Jules Dubois
On Tue, 09 Nov 2004 17:09:51 -0500, Tong wrote: > I used to use the following command/alias to get the names under the > current directory in RH: > > ls -l | grep ^d | cut -c57- find . -type d -name -print > but in Debian, the position of the file name is not fixed. Using 'ls', if the direc

Re: Get directories names

2004-11-09 Thread Travis Crump
David Jardine wrote: On Tue, Nov 09, 2004 at 05:09:51PM -0500, Tong wrote: Hi, I used to use the following command/alias to get the names under the current directory in RH: ls -l | grep ^d | cut -c57- but in Debian, the position of the file name is not fixed. It is for me, and the above comman

Re: Get directories names

2004-11-09 Thread Frank Gevaerts
On Tue, Nov 09, 2004 at 05:09:51PM -0500, Tong wrote: > Hi, > > I used to use the following command/alias to get the names under the > current directory in RH: > > ls -l | grep ^d | cut -c57- > > but in Debian, the position of the file name is not fixed. > > How do you get it? Thanks find .

Re: Get directories names

2004-11-09 Thread David Jardine
On Tue, Nov 09, 2004 at 05:09:51PM -0500, Tong wrote: > Hi, > > I used to use the following command/alias to get the names under the > current directory in RH: > > ls -l | grep ^d | cut -c57- > > but in Debian, the position of the file name is not fixed. It is for me, and the above command w

Re: Get directories names

2004-11-09 Thread s. keeling
Incoming from Alex Malinovich: > On Tue, 2004-11-09 at 17:09 -0500, Tong wrote: > > > > I used to use the following command/alias to get the names under the > > current directory in RH: > > > > ls -l | grep ^d | cut -c57- > > > > but in Debian, the position of the file name is not fixed. > >

Re: Get directories names

2004-11-09 Thread Alex Malinovich
On Tue, 2004-11-09 at 17:09 -0500, Tong wrote: > Hi, > > I used to use the following command/alias to get the names under the > current directory in RH: > > ls -l | grep ^d | cut -c57- > > but in Debian, the position of the file name is not fixed. > > How do you get it? Thanks I'm not sure