Created
June 5, 2018 00:42
-
-
Save hatzopoulos/35783d86223edad0631e725c76a0d9d0 to your computer and use it in GitHub Desktop.
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
function tabs_or_spaces () { | |
spaces = $(grep -P '^ *' "$@" | wc -l); | |
tabs = $(grep -P '^\t' "$@" | wc -l); | |
echo "Number of Spaces: $spaces" | |
echo "Number of Tabs: $tabs" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment