Skip to content

Instantly share code, notes, and snippets.

@f-steff
Last active October 11, 2019 08:03
Show Gist options
  • Save f-steff/22d88c94b0787bdd16d7e39f73569772 to your computer and use it in GitHub Desktop.
Save f-steff/22d88c94b0787bdd16d7e39f73569772 to your computer and use it in GitHub Desktop.
How to comment out bit pieces of code simple and effective.
#!/bin/bash
echo "Multi line comments in Bash"
: '
blah blah
blah blah
blah blah
blah blah
blah blah
# '
echo "All done done!"
@f-steff
Copy link
Author

f-steff commented Oct 11, 2019

Explanation:

: is shorthand for true and true does not process any parameters. (manual page: SYNOPSIS true [ignored command line arguments]

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