I want to get the versionName from the AndroidManist.xml file with a shell command.
I’ve been trying to use grep and with:
grep versionName ./AndroidManifest.xml
I’m getting this line:
android:versionName="1.0">
Is it possible to narrow it down to 1.0 somehow?
Thanks in advance
Try this :
You may want to put this into a file :
Ex: VersionNum.pl
Then simply
chmod 755 VersionNumber.pland use it withVersionNumber.pl AndroidManifest.xml