Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How one can list only the name of directories present in the directory by using ls co Post 46979 by amolpatil54321 on Friday 30th of January 2004 11:36:14 AM
Old 01-30-2004
How one can list only the name of directories present in the directory by using ls co

How one can list only the name of directories present in the directory by using ls command.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

list file's by size order in sepecfied directory and sub directories

How do I list files of type "*.file" for example by size order recursively ? (2 Replies)
Discussion started by: ferretman
2 Replies

2. Shell Programming and Scripting

ls > file - Creating file containing the list of all files present in a directory

Hi All, I need to create a file which contains the list of all the files present in that directory. e.g., ls /export/home/user/*.dat > list_file.dat but what i am getting is: $ ls /export/home/user/*.dat > list_file.dat /export/home/user/*.dat: No such file or directory But I have... (1 Reply)
Discussion started by: pranavagarwal
1 Replies

3. UNIX for Dummies Questions & Answers

List files that are not directories from current directory

I can't manage to list all files that are not directories from current directory. (2 Replies)
Discussion started by: beni22sof
2 Replies

4. Solaris

How list all directories in a directory?

Hi How can i list all the directories inside a directory? not only the directories in the present dir. also the directories inside directories present in the dirrectory. recursive. "find . -type d" will work with other Unix flavors but not with SunOS. Please help Robin (1 Reply)
Discussion started by: robinbannis
1 Replies

5. Solaris

how to find the list of all packages present in a directory

Hi I'm in a directory named /tmp/mq7 i need to upgrade the mq version from 6 to 7 but im not sure where is the package located ? which command in solaris will show me the list of all the packages present in the directory /tmp/mq7 ? my box is running with solaris version 10. (2 Replies)
Discussion started by: newtoaixos
2 Replies

6. Shell Programming and Scripting

How to list all the files, directories and sub-directories in the current path except one directory?

Can anyone come up with a unix command that lists all the files, directories and sub-directories in the current directory except a folder called log.? Thank you in advance. (7 Replies)
Discussion started by: Manjunath B
7 Replies

7. Shell Programming and Scripting

List file NOT present in other directory

Dear community, I have one LOG directory with some files. What I need to do is list ONLY the files that are not present in other directory. Using Bash programming! LOG DIR | SYNC DIR FILE1 | FILE1 FILE2 | FILE3 FILE3 | OTHER FILENAME FILE4 ... (9 Replies)
Discussion started by: Lord Spectre
9 Replies

8. Shell Programming and Scripting

Joining files present in different directories.

Hi Experts, I have files Bank1 ,Bank2 ,Bank3 with high level customer information in one folder. /home/Cust_information/ Bank1,Bank2,Bank3,Bank4 The detail level information of all customers of each Bank are present in separate directories . Here Bank1 is a directory which contains set... (2 Replies)
Discussion started by: bharathbangalor
2 Replies

9. Shell Programming and Scripting

Finding non-existing words in a list of files in a directory and its sub-directories

Hi All, I have a list of words (these are actually a list of database table names separated by comma). Now, I want to find only the non-existing list of words in the *.java files of current directory and/or its sub-directories. Sample list of words:... (8 Replies)
Discussion started by: Bhanu Dhulipudi
8 Replies

10. UNIX for Beginners Questions & Answers

List all files and directories in the current directory separated by commas and sorted by crtime

What I know so far: ls -A will list all files except those starting with a dot ls -d will list all directories ls -m will separate contents by commas For getting crtimes use: stat filename will give me the inode number or ls -i filename will give... (13 Replies)
Discussion started by: chstewar
13 Replies
NcdT(1) 						      General Commands Manual							   NcdT(1)

NAME
ncdt - directory tree printer with extended capabilities SYNOPSIS
ncdt [-db?] [--dirs] [--bitrate] [--prefix text ] [--help] [ directory [ name ]] DESCRIPTION
ncdt is a small utility for printing directory trees. It has some additional features not found in tree(1). Additional capabilities are: - size field for directories displays the summary size of directory subtree instead of the size of the special file (which is somewhat more useful) - sizes are displayed in a more readable format (that's a minor improvement, but it helps a little) - MP3 files are detected; additional info is displayed for them (which is probably the nicest thing about NcdT) The info is displayed in a compact form, like <2:53 v168JR+> where 2:53 is play time, v (if present) means the file is encoded using VBR, 168 is bitrate (average bitrate for VBR files), J describes channel encoding (Mono, Stereo, Joint-Stereo, Dual channel), R (if present) means the file has a RIFF header at the beginning, + (if present) means the file has ID3v2 tag attached - (if present) means there's no ID3 tag at all (none of these means there's only ID3v1 tag present). NcdT is particularily nice for indexing CDs. OPTIONS
-d --dirs Print only directories, omit files. This mode is a rough equivalent of du(1). -b --bitrate Print bitrate info for directories. Bitrates are displayed both for ordinary files and directories. If all MP3 files in a given directory subtree have the same bitrate only one number is printed, if they have various bitrates the range is printed. --prefix text Prefix listing with given text. This option is not intended for general use. It might be used by programs using NcdT to index CDsor doing similar operations to record additional information. -? --help Display usage summary. USAGE
When called without any parameters ncdt displays directory tree for current directory (.). When called with one parameter ncdt displays directory tree for specified directory. When called with two parameters ncdt displays directory tree for the directory specified as its first parameter. Second parameter is used as directory label for the top level directory (instead of directory name from parameter 1). EXAMPLES
ncdt prints directory tree for the current directory. It will be labeled . ncdt /usr prints directory tree of /usr. It will be labeled /usr ncdt /cdrom 'CD #21' prints directory tree of /cdrom. It will be labeled CD #21 ncdt -db /cdrom lists directory sizes, play times and bitrate ranges SEE ALSO
tree(1), du(1) BUGS
NcdT uses quite a lot of memory. It's also not very fast, but on a decent CPU it should not be noticeable. There are no real bugs I'm aware of. I don't think there are any now. AUTHOR
Pawel Wiecek <coven@vmh.net> NcdT(1)
All times are GMT -4. The time now is 04:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy