Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active February 26, 2017 15:36
Show Gist options
  • Save fedir/5993902 to your computer and use it in GitHub Desktop.
Save fedir/5993902 to your computer and use it in GitHub Desktop.
Strip Vagrantfile from comments and empty lines
#!/bin/bash
cat Vagrantfile | grep -vE '(^[[:space:]]*($|(#|!|;|//)))'
cat Vagrantfile | grep -vE '(^[[:space:]]*($|(#)))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment