Skip to content

Instantly share code, notes, and snippets.

@byJeevan
Created December 18, 2018 12:58
Show Gist options
  • Save byJeevan/7ee15a43a74fdcc0bdb512d345ff5343 to your computer and use it in GitHub Desktop.
Save byJeevan/7ee15a43a74fdcc0bdb512d345ff5343 to your computer and use it in GitHub Desktop.
This will print all the keys in the Localizable.strings file
#!/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