How to find number of lines of a file which is in perforce? -


i using p4 print <filename> | wc -l find number of lines. consuming more time. there better way?

the line count of file not stored in perforce metadata, fetching actual content , counting lines indeed best way.

if you're trying gather metrics , okay rougher approximation in exchange quicker queries, file size is cached -- can access p4 fstat or p4 sizes.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -