Skip to content

Instantly share code, notes, and snippets.

@pmaccamp
Created August 22, 2013 23:27
Show Gist options
  • Save pmaccamp/6313966 to your computer and use it in GitHub Desktop.
Save pmaccamp/6313966 to your computer and use it in GitHub Desktop.
Script to convert unicode files to text in perforce
#!/bin/bash
#Convert all unicode file types to text
# Find any files with unicode using grep
p4 files -a //... | grep '(.*unicode.*)' > "unicode_listing"
while read line
do
echo "Retyping ${line/\#*/}";
p4 retype -t text "${line/\#*/}";
done < "unicode_listing"
rm unicode_listing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment