Skip to content

Instantly share code, notes, and snippets.

@evertonfraga
Last active September 23, 2020 17:56
Show Gist options
  • Save evertonfraga/8f124096b92c3300cd89b07aa45ab54d to your computer and use it in GitHub Desktop.
Save evertonfraga/8f124096b92c3300cd89b07aa45ab54d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Saving current directory
CWD=`pwd`
ALL_REPOS="account block blockchain tx vm"
# initialize/clean tmp file
echo "" > all-tags.txt
# Print git tags
for REPO in $ALL_REPOS
do
cd $CWD/ethereumjs-$REPO
git tag -l | cat >> ../all-tags.txt
done
cd $CWD
echo "Total tags: `wc -l all-tags.txt`"
echo "Unique tag names: `cat all-tags.txt | sort | uniq | wc -l`"
@evertonfraga
Copy link
Author

> chmod +x git-tags.sh
> ./git-tags.sh

# Output: 
Total tags:      155 all-tags.txt
Unique tag names:       79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment