[p4] Find In Files

Todd Zarnes todd.zarnes at activant.com
Tue Apr 22 06:49:06 PDT 2008


This only displays lines of text where the word is found...no indication
of what file it is contained in.  Another tool I once supported had a
pretty good approach to Find in Files where you can open a 'Check Out'
of all files in a given directory that contains the word you search on.


Todd

________________________________

From: Nittin chawala [mailto:nittinchawala at yahoo.co.in] 
Sent: Monday, April 21, 2008 10:41 PM
To: Todd Zarnes; perforce-user at perforce.com
Subject: Re: [p4] Find In Files

 

You may try:

 

p4 print -q <//depot/path/of/where/you/want/to/search/...> | grep
"pattern"

--


Todd Zarnes <todd.zarnes at activant.com> wrote:

	Is there a Perforce way to search for a keyword within a
file...or an
	easy trick besides performing a sync to head on a branch and
doing a
	windows local search? 
	
	ToddZarnes | Activant Eclipse | SCM Manager | Tel: 303.938.8801
Ext:
	1544
	
	
	Notice: This transmission is for the sole use of the intended
recipient(s) and may contain information that is confidential and/or
privileged. If you are not the intended recipient, please delete this
transmission and any attachments and notify the sender by return email
immediately. Any unauthorized review, use, disclosure or distribution is
prohibited.
	_______________________________________________
	perforce-user mailing list - perforce-user at perforce.com
	http://maillist.perforce.com/mailman/listinfo/perforce-user

 

  

________________________________

>From Chandigarh to Chennai - find friends all over India. Click here.
<http://in.rd.yahoo.com/tagline_groups_10/*http:/in.promos.yahoo.com/gro
ups/citygroups/>
 
 
Notice: This transmission is for the sole use of the intended recipient(s) and may contain information that is confidential and/or privileged.  If you are not the intended recipient, please delete this transmission and any attachments and notify the sender by return email immediately.  Any unauthorized review, use, disclosure or distribution is prohibited.


More information about the perforce-user mailing list