Scan Multiple Dir/Files


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Scan Multiple Dir/Files
# 8  
Old 03-30-2008
Well, for example, anything with four digits with dots between them will also catch Microsoft Exchange version numbers, so you need to put in a bit of context. There's a myriad different Received: header formats out there but maybe you are only looking for your own, in which case it's trivial to pinpoint which field in there is the IP address.

Actually, looking at the code again, the conditions before you even attempt a regex are pretty specific, so I guess you're fine.

Anyway, for a tool like this, maybe it's better to have a few false positives than to miss out on something important.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Assign read write permission to the user for specific dir and it's sub dir and files in AIX

I have searched this quite a long time but couldn't find the right method for me to use. I need to assign read write permission to the user for specific directories and it's sub directories and files. I do not want to use ACL. I do not want to assign user the same group of that directories too.... (0 Replies)
Discussion started by: blinkingdan
0 Replies

2. Shell Programming and Scripting

KSH - Find paths of multiple files in CC (dir and sub-dir))

Dear Members, I have a list of xml files like abc.xml.table prq.xml.table ... .. . in a txt file. Now I have to search the file(s) in all directories and sub-directories and print the full path of file in a output txt file. Please help me with the script or command to do so. ... (11 Replies)
Discussion started by: Yoodit
11 Replies

3. UNIX for Dummies Questions & Answers

How to list all files in dir and sub-dir's recursively along with file size?

I am very new to unix as well as shell scripting. I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies

4. Shell Programming and Scripting

moving files from a dir in one machine to a dir in another machines

Hi, I am a unix newbie.I need to write a shell script to move my oracle READ WRITE datafiles from one serevr to another. I need to move it from /u01/oradata/W1KK/.. to /u01/oradata/W2KK, /u02/oradata/W1KK/.. to /u02/oradata/W2KK. That is, I actaully am moving my datafiles from one database to... (2 Replies)
Discussion started by: mathews
2 Replies

5. Shell Programming and Scripting

find string from multiple dir and redirect to new files

Hi, I am new to script and I want find one string from multiple files in diff directories and put that out put to new file. Like I have A,B & C directories and each has multiple files but one file is unic in all the directories like COMM.txt Now I want write script to find the string... (8 Replies)
Discussion started by: Mahessh123
8 Replies

6. Shell Programming and Scripting

A script to find dir, delete files in, and then del dir?

Hello!! I have directories from 2008, with files in them. I want to create a script that will find the directoried from 2008 (example directory: drwxr-xr-x 2 isplan users 1024 Nov 21 2008 FILES_112108), delete the files within those directories and then delete the directories... (3 Replies)
Discussion started by: bigben1220
3 Replies

7. Shell Programming and Scripting

replace string in multiple files, dir and subdir

Hello, I have a directory www with multiple directories. Every directory has site name with .htm, .html, .php files or sub directories with .htm, .php, .html file as example - www - sitename 1 - site 1 - sitename 2 - sitename 3 What I'm looking for is a... (7 Replies)
Discussion started by: andyjill
7 Replies

8. Shell Programming and Scripting

need to move files of particular day from one dir to another dir

Hi, I have hundered's of files of the name CMP_PORT_IN_P200903271623042437_20090328122430_err.xml in error directory of todays date ie 20090328 and in the file name 5th field specifies date only now i want to move all files of 20090328 to another directory i.e reprocess directory. So... (3 Replies)
Discussion started by: ss_ss
3 Replies

9. Shell Programming and Scripting

How to copy specified files from list of files from dir A to dir B

Hello, fjalkdsjfkldsajflkajdskl (3 Replies)
Discussion started by: pmeesara
3 Replies

10. Shell Programming and Scripting

Scripting help for rm log files from multiple dir

Hi, I'm quite new to scripting and need some help. I need to have one script that will check specific directories for files older than one month and then have the script delete them. I have written the script below but it only does one directory. I don't quite know how to make it so it... (7 Replies)
Discussion started by: morgadoa
7 Replies
Login or Register to Ask a Question
Dist::Zilla::Plugin::FileFinder::ByName(3pm)		User Contributed Perl Documentation	      Dist::Zilla::Plugin::FileFinder::ByName(3pm)

NAME
Dist::Zilla::Plugin::FileFinder::ByName - FileFinder matching on pathnames VERSION
version 4.300020 SYNOPSIS
In your dist.ini: [FileFinder::ByName / MyFiles] dir = bin ; look in the bin/ directory dir = lib ; and the lib/ directory file = *.pl ; for .pl files match = .pm$ ; and for .pm files skip = ignore ; that don't have "ignore" in the path DESCRIPTION
FileFinder::ByName is a FileFinder that selects files by matching the criteria you specify against the pathname. There are three types of criteria you can use. "dir" limits the search to a particular directory. "match" is a regular expression that must match the pathname. "skip" is a regular expression that must not match the pathname. Each key can be specified multiple times. Multiple occurrences of the same key are ORed together. Different keys are ANDed together. That means that to be selected, a file must be located in one of the "dir"s, must match one of the "match" regexs, and must not match any of the "skip" regexs. Note that "file" and "match" are considered to be the same key. They're just different ways to write a regex that the pathname must match. Omitting a particular key means that criterion will not apply to the search. Omitting all keys will select every file in your dist. Note: If you need to OR different types of criteria, then use more than one instance of FileFinder::ByName. A FileFinderUser should allow you to specify more than one FileFinder to use. ATTRIBUTES
dir The file must be located in one of the specified directories (relative to the root directory of the dist). file The filename must match one of the specified patterns (which are converted to regexs using Text::Glob and combined with any "match" rules). match The pathname must match one of these regular expressions. skip The pathname must not match any of these regular expressions. CREDITS
This plugin was originally contributed by Christopher J. Madsen. AUTHOR
Ricardo SIGNES <rjbs@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-21 Dist::Zilla::Plugin::FileFinder::ByName(3pm)