Sponsored Content
Top Forums Shell Programming and Scripting Find all files for a user, excluding a directory Post 302449427 by steve2x4 on Monday 30th of August 2010 02:11:09 PM
Old 08-30-2010
This looks good. It still picks up the /QSYS.LIB, but it does get all 4 files owned by this user. Thats exactly what I need.

find / -user test001 -o -type d -name QSYS.LIB -prune /QSYS.LIB
/SNEGRON/CBNACWP.TXT
/SNEGRON/special990.txt
/SNEGRON/pgm1.txt
/test06

Thanks for your help.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find all files created by a specified user in a directory and its subdirectories

Is there a command or shell script which can be used for Finding all files created by a specified userid in a directory and its subdirectories. Say, I want to find all such files in directory /abc as well as in all the subdirectories such as /abc/xyz or /abc/xyz/pqr aqnd so on which was created... (5 Replies)
Discussion started by: abhilashnair
5 Replies

2. UNIX for Advanced & Expert Users

find excluding a directory and a file

Hi I have some 5 folders and two files in the current directory. I want to delete all, expect one folder(files in the folder too should not be deleted) and a file in the current directory. Lets say the folder and file that should not be deleted as 'a'(folder name) and 'b'(file name). Can you... (1 Reply)
Discussion started by: ammu
1 Replies

3. UNIX for Dummies Questions & Answers

Find Files in a Directory Excluding Subdirectories

Hi, I have a filename Location.txt in a directory /abc. Similar name file is present in its subdirectory /abc/xyz. I want to find the file which is present only in /abc and not in /abc/xyz. Please any1 of u can provide a quick suggestion. Its very urgent. Thanks, Amol (2 Replies)
Discussion started by: Amol_Dicholkar
2 Replies

4. UNIX for Dummies Questions & Answers

Need help in excluding a particular directory using Find commad

Hi, I have a directory structure as below /home/gad/Merl/a/a1.txt /home/gad/Merl/b/a1.txt /home/gad/Merl/c/a1.txt How can I find the file a1.txt but not from directory 'a' and it(the filw) should loaded 6 days ago.. Can any one pls help,quick reply much appriciated.. Thanks. (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies

5. Shell Programming and Scripting

Find ordinary files in directory input by user

I need to make a shell script that accepts a directory input by the user. The program searches for the directory and finds if it exists or not. Then if it does exist, it outputs the number of files within that directory. Here's what I have so far. result= echo "Please input a directory:... (5 Replies)
Discussion started by: itech4814
5 Replies

6. Shell Programming and Scripting

Find command to search files in a directory excluding subdirectories

Hi Forum, I am using the below command to find files older than x days in a directory excluding subdirectories. From the previous forums I got to know that prune command helps us not to descend in subdirectories. Though I am using it here, not getting the desired result. cd $dir... (8 Replies)
Discussion started by: jhilmil
8 Replies

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

8. Shell Programming and Scripting

Find/searching files in subdirectories excluding the fiels in Parent Directory

Hi All, requirement is to find and remove the files from sub directories but it should exclude the files from parent directory. At present i am using the below one but it finds and remove files from both parent and sub directories. find ${PATH} -type f \( -name securitas\* -o -name \*gz... (1 Reply)
Discussion started by: Naveenkk
1 Replies

9. Shell Programming and Scripting

Append string to all the files inside a directory excluding subdirectories and .zip files

Hii, Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories. Eg. file1: test1.log file2: test2.log file3 test.zip After running the script file1: string_test1.log file2: string_test2.log file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies

10. UNIX for Beginners Questions & Answers

Find file with extension and excluding directory

Hi, I have an inquiry on how do I use the find command in Solaris Unix to find some file ends with extension : txt, err in the root directory with modified date of 30days and this find command will also need to exclude b directory and its subdirectory. All the files from the above find criteria... (5 Replies)
Discussion started by: snowfrost88
5 Replies
METAXREF(1)						      General Commands Manual						       METAXREF(1)

NAME
metaxref - builds cross-reference file/unit/item information SYNOPSIS
metaxref [ -dhkmsV ] [ -f manifest ] [ -L dir ] DESCRIPTION
Metaxref is a program that scans all the files in your MANIFEST file and produces three files which contains information about how the files in that MANIFEST reference items defined by metaconfig's unit files. The first two files, I.fui and I.uif reference the file, unit and items sorted differently. The third file, Obsolete, dumps all the known obsolete symbols, in which file they appear and the new symbol that should be used instead. Note that obsolete symbols do not appear in the main cross-reference files, but are only listed in the Obsolete file. That's yet another incentive to use the new symbols in your sources. :-) OPTIONS
Metaxref recognizes the following options: -d Turn on debug mode. -f manifest Use an alternate manifest file. -h Print help message and exit. -k Keep temporary .MT directory. -m Assume lots of memory and swap space. This will drastically improve the symbol lookup time in your source files, at the expense of memory usage. -s Turn on silent mode. -L dir Override default library location (where the U units directory can be found). -V Print version number and exit. AUTHOR
Harlan Stenn <harlan@mumps.pfcs.com> FILES
LIB/dist/mcon/U/*.U Public unit files. U/*.U Private unit files I.fui Lists information sorted by file, unit and item. I.uif Lists information sorted by unit, item and file. Obsolete Lists all the obsolete symbols used by the sources. where LIB is /usr/share/dist. BUGS
Metaxref will list among the wanted items all those magic symbols defined within units on the ?M: lines. Those are relevant only when meta- config is invoked with the -M option. SEE ALSO
metaconfig(1), metalint(1) Version 3.5 PL0 METAXREF(1)
All times are GMT -4. The time now is 12:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy