Hello, I am using ksh93 (/usr/dt/bin/dtksh) on Solaris and am stuck when trying to use find with the -prune option.
I need to search a directory (supplied in a variable) for files matching a certain pattern, but ignore any sub-directories.
I have tried:
Code:
find ${full_path_to_dir_to_search} -type f -name "*.dat" -print -o -type d -prune
which produces no output.
:)Hi Unix Specialists,
I need your advice on how to find all the files from root ( / ) filesystem but exclude those from /export/home (different filesystem) folder.
If I type ls *ro* I also get files in subdirectories that match the *ro* pattern.
Is there any option for ls similar to prune?
Ideally a flag, otherwise perhaps an exec?
So i have read the man pages a few time.
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 able to list files only in the directory but not in sub-directories.
find . ! -name .
Hi all,
1). Is is possible to use the date builtin and subtract a literal e.g 1 day in bash alongwith the find command from the command line:
e.g
Code:
find . -name --date %Y-%m-%d - 1
2).
Hello,
I know find can be prevented from recursing into directories with something like the following...
Code:
find . -name .svn -prune -a type d
But how can I completely prevent directories of a certain name (.svn) from being displayed at all, the top level and the children?
I really appreciate any help you can give me.
Thanks.
For reference i am still a newb at scripting, but i have what i think is a complex issue.
I need to run a FIND on / to identify all files and print them to >> $TEMPFILE
I need to avoid MVFS
I need to avoid /var/tmp/nastmp/
I was trying find / \( -type d -name nastmp -prune \) -a \( -fstype mvfs \) -print
But this is not working at all.
I'm building a backup script where some directories should not be included in the backup archive.
cd /;
find .