logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: [p4] how to delete all files NOT in depot?: msg#00038

Subject: Re: [p4] how to delete all files NOT in depot?
On Tue, 11 Jan 2005 09:59:57 -0500, Jay Glanville
<Jay.Glanville@xxxxxxxxxxxxxxxxxxxxxx> wrote:
 
> Is there a way to get perforce to remove all files from my workspace
> that aren't in my perforce view?

On Unix:

find * -type f | p4 -x - files > /dev/null 2> tmpfile
sed 's/ .*//' tmpfile | xargs rm -f
rm tmpfile

-- 
Chuck Karish   karish@xxxxxxxx   (415) 317-0182
_______________________________________________
Come to the 2005 Perforce User Conference, April 14 & 15 in Las Vegas.
Learn more: http://www.perforce.com/conf 

perforce-user mailing list  -  perforce-user@xxxxxxxxxxxx
http://maillist.perforce.com/mailman/listinfo/perforce-user




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>