Skip to content

Instantly share code, notes, and snippets.

@denzuko
Last active December 13, 2015 22:49
Show Gist options
  • Select an option

  • Save denzuko/4987473 to your computer and use it in GitHub Desktop.

Select an option

Save denzuko/4987473 to your computer and use it in GitHub Desktop.
cat a file without comments (usefull for ini and rc files)
catt() { sed "s/^[#|;]\+.*$//g" $1 | grep -v "^$"; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment