Michael Mirman
2016-10-25 10:53:51 UTC
I have multiple directories that have +w (Always writable in workspace). How do
I change all files to keep all permissions as is, and remove the +w if exists.
Need the p4 command (I know p4 edit -t is per file type...). Some files are
text, some are binaries...
This worked for me:I change all files to keep all permissions as is, and remove the +w if exists.
Need the p4 command (I know p4 edit -t is per file type...). Some files are
text, some are binaries...
-> p4 files ... | grep +w | awk '{print $NF, $1}' | sed -e 's/(/p4 edit -t /' -e 's/+w)//' -e 's/#.*//' | sh -x
:-)
--
Michael Mirman
MathWorks, Inc.
508-647-7555
--
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5012-changing-multiple-files-permissions
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://m
Please click here to see the post in its original format:
http://forums.perforce.com/index.php?/topic/5012-changing-multiple-files-permissions
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://m