Who touched a file in perforce

p4 filelog $FILENAME | grep @ | awk ‘{print $9}’ | sed ‘s!@.*!!’ | sort -u

This little ditty pulls all of the the user names out of the filelog and creates a sorted list.  At my company, the portion after the @ is the machine that was used for check in, so I don’t want it showing.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.