Re: [p4] p4 grep - Without printing the line
P4Reg <[email protected]>
| Newsgroups | gmane.comp.version-control.perforce |
|---|---|
| Message-ID | <[email protected]> |
Posted on behalf of forum user 'P4Reg'. [https://forums.perforce.com/index.php?app=forums&module=forums§ion=findpost&pid=22511] Elliott Lock, on 2017/10/17 11:02:11 UTC, said: > Is it not possible to perform the grep command on lines with more than 4096 characters? > 4096 is the default maximum line length for grep. You can increase the settings for these 2 server configurables that relate to grep: From p4 help undoc: dm.grep.maxlinelength 4096 Maximum line length that can be searched dm.grep.maxcontext 1K Maximum size of context allowed for grep [https://forums.perforce.com/index.php?app=forums&module=forums§ion=findpost&pid=22513] Elliott Lock, on 2017/10/17 13:01:34 UTC, said: > I have this working for reporting the file and line number. But not the revision. I think I'm misunderstanding the formatting. How would you add the file revision between the two items? > You can use %rev%: p4 -ztag -F "%depotFile% %rev% %line%" grep -a -n -e "//streams/development/textFile.txt" -- Please click here to see the post in its original format: http://forums.perforce.com/index.php?/topic/5515-p4-grep-without-printing-the-line _______________________________________________ perforce-user mailing list - [email protected] http://maillist.perforce.com/mailman/listinfo/perforce-user