Sponsored Content
Top Forums UNIX for Dummies Questions & Answers list only directories in commandline. Post 66891 by jhmr7 on Thursday 17th of March 2005 05:23:41 PM
Old 03-17-2005
Thanks a lot guys. Your help is much appreciated.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

List directories

Is there any way to list only directories in particular file system? Malay (3 Replies)
Discussion started by: malaymaru
3 Replies

2. UNIX for Dummies Questions & Answers

How to list only directories?

How to list directories (not sub-directories) from a given path? (4 Replies)
Discussion started by: videsh77
4 Replies

3. UNIX for Dummies Questions & Answers

how to list directories only

I would like to know how to list directories only without a / at the end. I would like to only see them in my current dir. for example ls - d */ gives dir1/ dir2/ dir3/ dir4/ but is there a way to get only dir1 dir2 dir3 i need it to use them as inputs in a foreach loop... (3 Replies)
Discussion started by: yodadbl07
3 Replies

4. Shell Programming and Scripting

List of directories into a nested list

I have a list of directories like this a a/b a/c a/d a/d/e a/d/f a/d/g a/d/g/h a/i I would like to convert this list into another list, nested like this a{b{} c{} d{e{} f{} g{h{}}} i{}} Here is a pseudo algorithm for this Add a: (1 Reply)
Discussion started by: Ilja
1 Replies

5. UNIX for Dummies Questions & Answers

(really basic) List directories only?

I'm looking for a Linux equivalent to the DOS dir /ad that lists the directories ("folders" in Windows) in the current directory. I looked at the ls manpage, which says -d, --directory list directory entries instead of contents, and do not... (4 Replies)
Discussion started by: CRGreathouse
4 Replies

6. Shell Programming and Scripting

Want to Get List of All directories

:confused: Hi, Is there any one-lier through which I will be able to reach to last directory excluding all files only directrory and sub-directoris should be displayed from the current path. Thanks in advance (7 Replies)
Discussion started by: niceboykunal123
7 Replies

7. Shell Programming and Scripting

How to list all the directories, sub directories in a mount along with size in ascending order?

Hi , I am very new to unix as well as shell scripting. I have to write a script for the following requirement. In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order. Please help me in this regard and many... (4 Replies)
Discussion started by: nmakkena
4 Replies

8. UNIX for Dummies Questions & Answers

List directories and sub directories recursively excluding files

Hi, Please help me, how to get all the direcotries, its sub directories and its sub directories recursively, need to exclude all the files in the process. I wanted to disply using a unix command all the directories recursively excluding files. I tried 'ls -FR' but that display files as... (3 Replies)
Discussion started by: pointers
3 Replies

9. 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

10. UNIX for Dummies Questions & Answers

List the directories, having given pattern in the directories name, sorted by creation date

It is for HP-Unix B.11.31. Requirement: 1. List the directories, having given pattern in the directories name, sorted by creation date. Example: Directories with name "pkg32*" or "pkg33*" 2. On the output of 1. list the directories by creation date as sort order, with creation date... (2 Replies)
Discussion started by: Siva SQL
2 Replies
uuls(1M)																  uuls(1M)

NAME
uuls - list spooled uucp transactions grouped by transaction SYNOPSIS
[directories]... [directories]... [directories]... DESCRIPTION
The commands, including are targeted for removal from HP-UX; see the below. This command lists the contents of UUCP spool directories (default with the files in each directory grouped into three categories: o Transactions, o Orphans, and o Others. Transactions Each output line starts with a transaction control filename, and includes the name of each local (same-directory) subfile referenced by the control file (see below). Each is possibly followed by the total size in bytes option) or Kbytes option) in the transaction (see below). The (meanings) option replaces the subfile names with nodename, user, and commandline information (see below). Orphans All subfiles not referenced by any control file. Others All other files in the directory (all files not listed under one of the above categories). Filenames are formatted into columns, so there can be more than one file per line. If a transaction has more subfiles than fit on one line, it is followed by continuation lines which are indented further. The (size in bytes) and (Kbytes) options cause the command to follow each transaction in the section with a total size for all stat-able, sendable files in that transaction. This includes files only, not or files. It does include stat-able files outside the spool directory that are indirectly referenced by files. Sizes are either in bytes or rounded to the nearest Kbyte (1024 bytes), respectively. A totals line is also added at the end of the section. The (meanings) option causes the command to follow and files with a commandline line, instead of subfilenames. For files, one line is printed per remote execution subfile it references. nodename is truncated at seven characters, username at eight, and commandline at how- ever much fits on one line. If is given, for each file with no remote execution files, the command instead shows the meaning of the file itself on one or more lines. Each line consists of a username, then (receive) or (send), then the name of the file to be transferred. See below for details. Filenames are listed in ascending collation order within each section (see Environment Variables below), except that the first section is only sorted by the control filename. Every file in the directory except and appears exactly once in the entire list, unless is used. Details Transaction files are those whose names start with or Subfilenames, which usually start with are gleaned from control file lines, at most one per line, from blank-separated fields, as follows: C.*: R <remotefrom> <localto> <user> -<options> C.*: S <localfrom> <remoteto> <user> -<options> <subfile> <mode> X.*: F <subfile> Lines that do not begin with the appropriate character or are ignored. In the (receive) case, <remotefrom> is used to print the meaning, and its transaction size is taken as zero (unknown). In the (send) case, if <subfile> is <localfrom> is a file not in the spool directory, resulting from a typical call without the (copy) option. In this case <localfrom> is used for the transaction size, if stat-able, and to print the meaning. and both set <subfile> to a true (spooled) subfile name. Orphan files are those whose names start with and which are not referenced by any control files. This algorithm extracts from control files the names of all subfiles that should exist in the spool directory when the transaction is not being actively processed. It is not unusual to see "missing subfiles" and "orphans" if you a spool directory while or is active. Meanings information is obtained by reading each subfile referenced by each file, and by reading files. is taken from the last line in the file which is of the form: U <username> <nodename> Likewise, commandline is taken from the last line of the form: C <commandline> If a subfile name is referenced more than once, references after the first show the subfile as missing. If a subfile name appears in a (corrupt) directory more than once, the name is only found once, but then it is listed again under EXTERNAL INFLUENCES
Environment Variables determines the order in which the output is sorted. If is not specified in the environment or is set to the empty string, the value of is used as a default. If is not specified or is set to the empty string, a default of ``C'' (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to ``C'' (see environ(5)). DIAGNOSTICS
The program writes an appropriate message to standard error if it has any problems dealing with a specified file (directory), including failure to get heap space. It always returns zero as its exit value. If a control file is unopenable (wrong permissions or it disappeared while was running), its name is preceded by a and the size of the transaction is zero. If a subfile is missing (filename not found in the directory being listed) or not stat-able (if required for or its name is preceded by a and it contributes zero bytes to the size of the transaction. If is specified and a file is missing or unreadable, its name is given with a prefixed, as usual. BUGS
This command uses chdir(2) to change to each directory in turn. If more than one is specified, the second through last directories must be absolute (not relative) pathnames, or the may fail. WARNINGS
Use of commands, including is discouraged because they are targeted for removal from HP-UX. Use ftp(1) or rcp(1) instead. AUTHOR
was developed by HP. SEE ALSO
mail(1), uucp(1), uuto(1), uux(1), uuxqt(1M), stat(2). TO BE OBSOLETED uuls(1M)
All times are GMT -4. The time now is 11:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy