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


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to list all the files, directories and sub-directories in the current path except one directory?
# 8  
Old 09-13-2012
worked well. nice.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

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

3. UNIX for Advanced & Expert Users

Find all files in the current directory excluding hidden files and directories

Find all files in the current directory only excluding hidden directories and files. For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided. `find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Discussion started by: ksailesh1
7 Replies

4. Shell Programming and Scripting

Find specific files only in current directory...not sub directories AIX

Hi, I have to find specific files only in the current directory...not in the sub directories. But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help.. I am using the below command. And i am... (2 Replies)
Discussion started by: aakishore
2 Replies

5. Emergency UNIX and Linux Support

List matching directories in current folder only on AIX

Hi, I need to find the list of matching direcories in current folder only and no subfolders on AIX.I tried -maxdepth option but its not working. Also, tried ls -d option to list the matching directories but getting argument list too long... So, any help would be appreciated. (6 Replies)
Discussion started by: sachinkl
6 Replies

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

7. Shell Programming and Scripting

mget * (obtein files from current directory but not the files form sub-directories)

Hello, Using the instruction mget (within ftp) and with "Interactive mode off", I want to get all files from directory (DirAA), but not the files in sub-directories. The files names don't follow any defined rule, so they can be just letters without (.) period Directory structure example: ... (0 Replies)
Discussion started by: Peter321
0 Replies

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

9. Shell Programming and Scripting

Recursive call to find files and directories in Shell script from current path.

################################################################ Copy this script to your path from where you want to search for all the files and directories in subdirectories recursively. ################################################################# code starts here... (2 Replies)
Discussion started by: Ramit_Gupta
2 Replies

10. Solaris

shell-init: could not get current directory: getcwd: cannot access parent directories

Hello root@ne-ocadev-1:/root/scripts>su espos -c find /a35vol100/ESPOS/oracle/db/9.2.0/oradata/ESPOS/archive -type f -atime +10 -exec ls {} shell-init: could not get current directory: getcwd: cannot access parent directories: Permission denied find: insufficient number of... (6 Replies)
Discussion started by: babu.knb
6 Replies
Login or Register to Ask a Question
catman(1M)																catman(1M)

NAME
catman - create cat and whatis files for online manpages SYNOPSIS
alt-path] [sections] DESCRIPTION
The command creates the formatted versions of the online manpages from source files. Each manpage in the and directories is examined, and those whose formatted versions are missing or out-of-date are recreated. formats the most recent of the entries, compresses it, and puts it into the appropriate directory. If any changes are made, recreates the database. By default, the database is overwritten. If the environment variable is set to a nonde- fault set of paths, the old database file is saved in so that, if desired, the system administrator may merge them together. By default, searches the and subdirectories under the following directories: If is set in the environment, the directories given in are checked instead of the default. See environ(5) for a description of the envi- ronment variable. Before running remove any existing directories. If the option is used, directories should be removed instead. If both and directories exist, man(1) updates both directories and more space is used. Any command-line parameters not starting with are interpreted as a list of manpage sections (directories) to search. For example: restricts updating to manpage sections 1, 2, and 3 (directories and Options supports the following options: Create a merged database; i.e., information on new manpage entries (added since the last time was run) is merged into the current database rather than overwriting it. Ignored if selected with the option. Prevent creation of Print what would be done instead of doing it. Cause only the database to be created. No manpage reformatting is done. Put the formatted entries in the directories rather than in the directories. Perform actions based on the given alternate root. With this option, alt-path will be prefixed to all directory paths, including default paths, the paths defined by and the path to EXTERNAL INFLUENCES
Environment Variables defines parent directories to be used when searching and directories. WARNINGS
If unformatted manpages (those in the subdirectories) have been removed since the last time was run, information in the database may be lost. The option may be used to override this, but may result in repeated lines in the database for the same manpage. EXAMPLES
Create uncompressed files for sections 1 and 1m of the manual, but don't create the database: Run from a server to create entries for a diskless client under the alternate root This will create manpages under: and a file in: Create entries for an application and merge the information with the database: Note that you may wish to save before doing this, so as not to lose your current AUTHOR
was developed by HP and the University of California, Berkeley. FILES
Unformatted source) manpage files [compressed]. Formatted manpages [compressed]. Database of manpage entry summaries; utilized by the command. Command to make database. SEE ALSO
compress(1), fixman(1M), man(1), environ(5). catman(1M)