08-30-2010
Close, but no cigar.
The command you provided gives the following results:
> find / -user test001 -type f -o -type d -name QSYS.LIB -prune
/QSYS.LIB
/SNEGRON/CBNACWP.TXT
/SNEGRON/special990.txt
/SNEGRON/pgm1.txt
This appears to be the files in QSYS.LIB and not the others.
Thanks for the quick response.
---------- Post updated at 02:00 PM ---------- Previous update was at 01:57 PM ----------
Oh, never mind. This is right. I guess because technically, all files are in QSYS.LIB, it includes the directory. The 3 files are actually in /SNEGRON, so that is correct. It didn't include the additional files, so this must be correct.
Thanks.
---------- Post updated at 02:05 PM ---------- Previous update was at 02:00 PM ----------
Well, I'm not so sure now. There are 6 objects owned by user test001. They are as follows:
/SNEGRON/CBNACWP.T >
/SNEGRON/pgm1.txt
/SNEGRON/special99 >
/test06
TEST001
TEST06
Your command should have picked up the /test directory but did not. I did get the 3 files, but not the directory. The 2 remaining files are definately in QSYS.LIB.
Why wouldn't the /test06 directory get picked up??
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
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
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
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
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
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 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
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
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
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
LEARN ABOUT DEBIAN
metaxref
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)