Created
December 18, 2018 12:58
-
-
Save byJeevan/7ee15a43a74fdcc0bdb512d345ff5343 to your computer and use it in GitHub Desktop.
This will print all the keys in the Localizable.strings file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Script will print all the keys in the Localization.string file from Xcode. | |
#First we have to copy the content and paste into a text file. | |
echo "***START***" | |
#Read line by line | |
while read line; do | |
#Convert string (by split with ;) to array | |
IFS='=' read -ra itemArray <<< "$line" | |
#Print first item in the array | |
for i in "${itemArray[0]}"; do | |
echo $i | |
done | |
done < fr.txt #Change name of file | |
echo "***END***" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment