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

Re: Get directories names



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 <criteria> | grep ^d | cut -c57-

find . -type d -name <criteria> -print

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

Using 'ls', if the directory is large, the position of the filename will
be shifted to the right.



Reply to: