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 <criteria> | 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 exactly what you're trying to do? Get a list of directories in the CURRENT directory? Or get a list of directories WITHIN a subdirectory? To get a list of directories in the CURRENT directory, just do: ls -d */ To get a list of directories WITHIN a directory, you could do: ls -d criteria*/*/ If you're not looking for either of the above, then please restate the question. -- Alex Malinovich Support Free Software, delete your Windows partition TODAY! Encrypted mail preferred. You can get my public key from any of the pgp.net keyservers. Key ID: A6D24837
signature.asc
Description: This is a digitally signed message part