Skip to content

Instantly share code, notes, and snippets.

Last active February 10, 2020 03:56
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Uses of : (no effect)
#to officially do nothing
#there you go, this could be used when writing or troubleshooting a script and you have only a single item in an if clause
if [ "${this}" = "that" ]; then
#actually not sure what to do here, let's do nothing
echo "This else, I'll do"
# A novel use I found is to redirect a heredoc into :
# jbeck at Extensis does this in the UTC removal script
[ ] 2016-0324: enclose me; love me. i am a block of comments
#and replacing the delimiter COMMENTBLOCK allows for a nice header
: << NOTES
Some notes about this script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment