string_xml_diff

From nat, 5 Years ago, written in Bash, viewed 333 times.
URL https://code.nat.moe/view/83d1e29b Embed
Download Paste or View Raw
  1. #!/usr/bin/env bash
  2. # find new values in string.xml. Friend of localization.
  3.  
  4. [[ -z $2 ]] && echo "usage: $0 <new_string.xml> <old_string.xml>" && exit 1
  5. grep -nrE "$(cat "$1" "$2" | grep "<string name" | cut -d '"' -f2  | sort | uniq -u | tr '\n' '|' | sed -e 's/|$//;')" $1

Reply to "string_xml_diff"

Here you can reply to the paste above

captcha