Skip to content

Instantly share code, notes, and snippets.

@andrewsadowski
Created February 1, 2019 22:37
Show Gist options
  • Select an option

  • Save andrewsadowski/7d8fe434cdc8fda700599d320fc1a545 to your computer and use it in GitHub Desktop.

Select an option

Save andrewsadowski/7d8fe434cdc8fda700599d320fc1a545 to your computer and use it in GitHub Desktop.

xml2csv

for LOC in $(ls -d */|tr -d // |cut -d- -f2,3); do grep -r '<string' values-$LOC | tr "\"><" \\t |cut -f3,5 > $LOC.csv ;done

stings2csv

for LOC in $(ls -d */|cut -d. -f1); do grep -r = $LOC.lproj|cut -d\" -f2,4|tr \" \\t>$LOC.csv;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment