Last active
December 16, 2015 14:03
-
-
Save sprohaszka/c88b86f772bbc4c7afd8 to your computer and use it in GitHub Desktop.
Extract iOS App version number with awk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Before pipe: extract lines between 2 patterns | |
# After pipe: `NR` select the line number to print | |
awk '/CFBundleVersion/ {p=1}; p; /string/ {p=0};' ../Project/Ressources/Info.plist | awk -F "[><]" 'NR==2 {print $3}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment