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'. You can use p4's -ztag and -F formatting option to filter just those fields: p4 -ztag -F "%depotFile% %line%" grep -a -n -e "//streams/development/textFile.txt" As well as the available variable names (those enclosed in %%, you can see a list using -ztag without the -F option), you can use free text so to replicate the output with the embedded "#" as well use: p4 -ztag -F "%depotFile%#%line%" grep -a -n -e "//streams/development/textFile.txt" You can read more about the -F option here https://www.perforce.com/blog/130826/fun-formatting -- 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