Skip to content

Instantly share code, notes, and snippets.

@Mukundhan-I2I
Created February 14, 2020 15:55
Show Gist options
  • Save Mukundhan-I2I/e91c4125d2813d9d7a6e738a0964b64f to your computer and use it in GitHub Desktop.
Save Mukundhan-I2I/e91c4125d2813d9d7a6e738a0964b64f to your computer and use it in GitHub Desktop.
findpom version
cat pom.xml | grep version | sed -n 3p | awk '{$1=$1;print}' | sed -E "s/(^<version>)(.+)(<\/version>)/\\2/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment