Don, your find does not visit any subdirectories,
while my find visits non-hidden subdirectories.
One precision: -maxdepth 1 can be replaced by \( ! -name <basestartdir> -prune \)
where <basestartdir> is . when the start directory is ..
Therefore, I would append /. to a startdir, and add -type d for clarity:
And perhaps add -print or -o -print (there is a difference!) for even more clarity.
Last edited by MadeInGermany; 02-03-2014 at 05:18 AM..
Hi ,
I am trying to use the find command with delete in a directory . Even though i use a wil character search the find command is checking the hidden files which inturn results in error .
Can i avoid look that into the hidden files ?? I am using HP unix .
find /cv1/ -name "ite*"... (3 Replies)
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)
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)
I have been searching, and cannot find an answer for this. I am trying to find all files for a user, lets call him (test001), and I want to exclude a specific directory.
Here is the command I run, it finds all files:
find / -user test001
I get this result:
> find / -user test001 ... (4 Replies)
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)
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)
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)
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)
hello.
I try to print a list of files but excluding some directories and some files.
I would like to write a command for :
find "from_dir" "ignore dir1, dir2, ..." "ignore file1, file2,...." "where file are older than 2017-02-03T06:00:00"
Note that "DO_IT" is a local function in the script... (5 Replies)
Discussion started by: jcdole
5 Replies
LEARN ABOUT REDHAT
acinclude
ACINCLUDE(1) GPL ACINCLUDE(1)NAME
acinclude - manual page for ac-archive 0.5.39
SYNOPSIS
acinclude [OPTIONS] ...
DESCRIPTION
Generate `acinclude.m4' by scanning `configure.ac' or `configure.in'
--acdir=DIR
directory holding subdirectories with config files
--help print this help, then exit
-I DIR
add directory to superdir search list for .m4 files
. add current directory as superdir to searchlist which is the default if no -I option was given.
--output=FILE
put output in FILE (default acinclude.m4)
--print-ac-dir
print name of directory with subdirs holding m4 files
--verbose
don't be silent
--version
print version number, then exit
Note that unlike aclocal the subdirectories (!!) of the acdir-path are searched for files - the default will find locals as ./*/*.m4
and always search for ac-macros installed as share/aclocal/*/*.m4 which may include the macros from ac-archive or from packages that
chose to install multiple files into a subdirectory of share/aclocal. The tool will warn at unresolved symbols starting with AX_
just as the original aclocal program did warn at unresolved macros with AC_.
AUTHOR
Written by Tom Tromey <tromey@cygnus.com> modified for acinclude by Guido Draheim <guidod@gmx.de> (C) 2001
REPORTING BUGS
Report bugs with original aclocal to <bug-automake@gnu.org>. Report problems with acinclude to <ac-archive-list@sourceforge.net>.
Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
SEE ALSO
The full documentation for the ac-macros handled with acinclude is maintained as m4 source and converted to html pages which get installed
in doc/ac-archive subdirectories in the filesystem at your site. Have a look.
ac-archive 0.5.39 January 2003 ACINCLUDE(1)