Merge "Minor improvements to apkcheck."
diff --git a/tools/findunused/findunusedstrings b/tools/findunused/findunusedstrings
index 7057527..9615abc 100755
--- a/tools/findunused/findunusedstrings
+++ b/tools/findunused/findunusedstrings
@@ -28,7 +28,8 @@
     if [ -d $app/res ]
     then
         pushd $app > /dev/null
-        for i in $(grep -Rs "\(string\|plurals\) name=" res | sed 's/.*<\(string\|plurals\) name="//'|sed 's/".*$//'|sort -u)
+        # Two sed's were needed because the | operator is not supported on the mac
+        for i in $(grep -Rs "\(string\|plurals\) name=" res | sed 's/.*string name=\"//' | sed 's/.*plurals name=\"//'|sed 's/".*$//'|sort -u)
         do
             echo $i $(grep -Rws R.plurals.$i\\\|R.string.$i\\\|@string/$i .|wc -l)
         done | grep ' 0$' | {