The quickest and simplest way to do it is to use the
find2perl script.
That will turn a standard unix find into a perl script and
you can
then tweak the script to do whatever you want for each of
the files
you find.
For example if you do,
find2perl / -type f
You will be given a script to print all the files.
Colin
On 9/17/07, mike kemp <clappymonkey gmail.com> wrote:
> Hola chaps and chapesses,
> I've been trying to find a solution to this for a
while, but am at a loss
> (perl noob that I am), and so have decided to throw
myself on the mercy of
> the group. Basically what I am attempting to do is
create a simple script to
> quickly spider a hard drive (with a view to extending
it to scan for certain
> file types / registry values for audit and forensic
purposes - think AV but
> without the AV angle) and am kind of at a loss. Speed
isn't really an issue,
> as long as it does what it says on the tin. I've
checked all around the
> place for a simple place to start, but am now lost. If
any of you guys know
> a good place to start, or have done something similar
in the past, I'd
> really appreciate if you could let me know. It's one of
those things that
> although it seems as if it should be simple to
accomplish but has proved to
> be anything but yet. All help greatly appreciated.
> Cheers all,
> Mike Kemp
>
> PS: By all means feel free to point and laugh - I have
never claimed to be a
> dev; merely an idiot that sometimes comes up with ideas
that may or may not
> be realisable ;)
>
|