Skip to content

Instantly share code, notes, and snippets.

View evrenozturkhurriyet's full-sized avatar

Evren Ozturk evrenozturkhurriyet

View GitHub Profile
perl -pi -w -e 's/"\@dimen\/unit([0-9]+)"/"\"\@dimen\/unit" . int($1*1.17+0.5) . "\""/e;' *.xml;
perl -pi -w -e 's/"([0-9]+)dp"/"\"" . int($1*1.63+0.5) . "dp\""/e;' *.xml;
perl -pi -w -e 's/"([0-9]+)sp"/"\"" . int($1*1.63+0.5) . "dp\""/e;' *.xml;
perl -pi -w -e 's/"([0-9]+)dp"/"\"\@dimen\/unit$1\""/e;' *.xml