07-22-2003
try this....
find . | xargs grep whatever
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
The man page for chmod doesn't list a way to recursively change permissions on directories only, without affecting the files themselves.
Let's say that I wanted to change the permissions on the current directory and all subdirectories. I know I can write a bash script that would do this using... (1 Reply)
Discussion started by: retrovertigo
1 Replies
2. Shell Programming and Scripting
Hello everyone , I am looking for a better solution then the one I have created for the my Task
The task is:
Create an automated script that will check for Uploads in a specified Directory and move them to another specified Directory if the files are completely uploaded.
Files are FTP'd to... (2 Replies)
Discussion started by: robertmcol
2 Replies
3. UNIX for Dummies Questions & Answers
Hello,
First time post - I have no formal unix training and could use some help with this. I have a list of strings in File1 that I want to use to do a recursive search (grep) under a specific directory.
Here is an example of the string I need to search:
/directory/dire... (16 Replies)
Discussion started by: upstate_boy
16 Replies
4. Shell Programming and Scripting
################################################################
Copy this script to your path from where you want to search for all the files and directories in subdirectories recursively.
#################################################################
code starts here... (2 Replies)
Discussion started by: Ramit_Gupta
2 Replies
5. UNIX and Linux Applications
I think I've seen out there that there is a command to ignore specific files within a directory when doing a (-R) recursive diff. I've never used this so I was wondering if there was anyone who could provide an example how I would run this. My thoughts are something like:
cvs diff -i <fileName1>... (2 Replies)
Discussion started by: airon23bball
2 Replies
6. AIX
Hi everyone,
Maybe this is simple question for many of you, but I get confused.:confused:
How to archive a parent directory which contains some subdirectories and some files?
I have searched this forum, there are some commands like tar,etc, I tried but can not be implemented in my system.... (6 Replies)
Discussion started by: wilsonSurya
6 Replies
7. Shell Programming and Scripting
find -type d -name "TC_*" | sort
That's what I have so far... it finds the appropriate directories and then sorts them. But, when it comes to nested subdirectories, it only sorts relative to the first subdirectory. I want it to sort based on the directory at the end of the path. Does anyone know... (3 Replies)
Discussion started by: crimsondarkn
3 Replies
8. Shell Programming and Scripting
hi;
i need a script which will go to all directories and subdirectories and print the filenames as follow;
here i m printing only files listing in current directory
reason i m doing this is coz i want to perform some operations according to filename achieved so cant use find command;... (4 Replies)
Discussion started by: ajaypadvi
4 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Using grep command, i want to find the pattern of text in all directories and sub-directories.
e.g: if i want to search for a pattern named "parmeter", i used the command
grep -i "param" ../*
is this correct? (1 Reply)
Discussion started by: vinothrajan55
1 Replies
10. Shell Programming and Scripting
So I have extremely limited experience with shell scripting and I was hoping someone could point out a few commands I need to use in order to pull this off with a shell script like BASH or whatnot (this is on OS X).
I need to search out for filenames with account numbers in the name itself... (3 Replies)
Discussion started by: flyawaymike
3 Replies
DGREP(1) Debian-goodies documentation DGREP(1)
NAME
dgrep, degrep, dfgrep, dzgrep -- grep through files belonging to an installed Debian package
SYNOPSIS
dgrep [most grep options] pattern package...
dgrep --help
DESCRIPTION
dgrep invokes grep(1) on each file in one or more installed Debian packages.
It passes the package argument(s) to dglob(1) to retrieve a list of files in those packages. You can use POSIX regular expressions for the
package names.
If dgrep is invoked as degrep, dfgrep or dzgrep then egrep(1), fgrep(1) or zgrep(1) is used instead of grep.
OPTIONS
dgrep supports most of grep(1)'s options. Please refer to your grep documentation (i.e. the manpage or the texinfo manual) for a complete
listing. Only a few options are excluded because they do not conform with the intended behaviour, see the list below.
Options of grep that are not supported by dgrep
-r, --recursive, -d recurse, --directories=recurse
-d read, --directories=read
dgrep searches only in the "normal" files of a package. It skips all directories and symlinks. Therefor the options of grep that are
specific to directories are not supported.
AUTHOR
Matt Zimmerman <mdz@debian.org>
This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>.
COPYRIGHT AND LICENCE
Copyright (C) 2001 Matt Zimmerman <mdz@debian.org>.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option) any later version.
On Debian systems, a copy of the GNU General Public License may be found in /usr/share/common-licenses/GPL.
SEE ALSO
grep(1), egrep(1), fgrep(1), zgrep(1), dglob(1), regex(7), dpkg(8)
perl v5.14.2 2012-03-21 DGREP(1)