Rudimentarily speaking, use "p4 have *" and filter out results with "#" in
them. P4 have returns a list of files currently under source control along
with their versions. For example:
p4 have * | grep -v #
If you want to recurse directories, then pass the above command to find,
for, ls, whatever suits your platform. I'm on Windows/NT, so I use this:
for /r %I in (*) do @p4 have %I | findstr /v #
On Unix, I would create a shell alias to run this (prune directories if you
want to - this doesn't):
find . -print -exec p4 have {} \; | grep -v #
Cheers,
_chas_
From: Patrick Moore [mailto:patrickm at manage.com]
Sent: Friday, April 23, 1999 9:11 AM
Subject: does anyone out there
... have a script that finds all the files in a users directory
structure that is *not* under source control?