10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi All,
I have a folder name lets say path/to/folder/CUSTOMER and under this i have several folders and each of these subfolder have serveral subfolders and so on and at some point i will have a folder name called "FTP_FILES" .
I need to search for these folders named "FTP_FILES and then... (10 Replies)
Discussion started by: Kevin Tivoli
10 Replies
3. 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
4. Shell Programming and Scripting
Hi,
I am not too familiar with Unix scripting but I have to write code to find all the files under all the sub directories under a parent directory of unix location and move them to the corresponding Windows location.
For eg: I have \home\sreenu\Files\
Under neath this I have multiple sub... (3 Replies)
Discussion started by: raj.sreenu
3 Replies
5. Shell Programming and Scripting
Hi,
I have to find 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 tried to use maxdepth..but it is not working in AIX. (2 Replies)
Discussion started by: vsachan
2 Replies
6. Shell Programming and Scripting
Hello dear Community,
I have a task to wrtie a script which will gzip not zipped files in a directory and itīs subdirectories. I succeeded in gzippung the directory but not the subdirectories:
#/bin/bash
#go to the directory where to zip
cd $1
#Zip unzipped files
for i in `ls | xargs... (2 Replies)
Discussion started by: JamesCarter
2 Replies
7. Shell Programming and Scripting
Hello Friends,
I've been trying to write a script which finds a string and change it with another string. For this i want to search all files (with its arguments) under a spesific directory and its subdirectories.
For example lets assume i want to replace an IP= 192.168.0.4 with another... (4 Replies)
Discussion started by: EAGL
4 Replies
8. UNIX for Dummies Questions & Answers
Hi! I want to find files located in subdirectories. I have tried
ls -R | grep myfile
but this won't tell me where the file is, only that it is there.
Any one have a better idea?
Thanks,
--Euclid (3 Replies)
Discussion started by: euclid3628800
3 Replies
9. 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
10. UNIX for Dummies Questions & Answers
I'm trying to remove several directories which contains sun-dirs and files inside.
I used the command rm -r <dirname>
But, it always ask "examine file in directory <dirname> yes/no?" line by line.
So, i need to write "y" for every line.
How can i skip this step and remove all directories with... (9 Replies)
Discussion started by: ppa108
9 Replies
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)