37 messages in com.perforce.perforce-userRemoving unchanged files from changel...| Subject: | Removing unchanged files from changelist?![]() |
|---|---|
| From: | Kend...@scitechsoft.com (Kend...@scitechsoft.com) |
| Date: | 06/17/1999 12:46:14 PM |
| List: | com.perforce.perforce-user |
Rajul Vora <rajul.vora at commerceone.com> wrote:
Now is there some way to do something similar to run 'grep' over all changed files, looking for a particular string? Specifically I want to check for hard coded debug interrupts (DebugInt() is our macro for this) in the code before any submissions are made.
Try: p4 diff -sa | xargs grep -l DebugInt
I am doing this on Windows 98.
If you are doing this on NT, try: p4 diff -sa | tr '\\' '/' | grep -l DebugInt
I don't see the 'tr' program anywhere on my system. p4 diff -sa outputs the list of files that have changed to the standard output, but I can't get my grep to recieve the list of files to check from STDIN. Does the -l option for GNU grep do this (my DOS based GREP lists filenames with the -l option).
Regards,
+---------------------------------------------------------------+ | SciTech Software - Building Truly Plug'n'Play Software! | +---------------------------------------------------------------+ | Kendall Bennett | Email: KendallB at scitechsoft.com | | Director of Engineering | Phone: (530) 894 8400 | | SciTech Software, Inc. | Fax : (530) 894 9069 | | 505 Wall Street | ftp : ftp.scitechsoft.com | | Chico, CA 95928, USA | www : http://www.scitechsoft.com | +---------------------------------------------------------------+




