Skip to content

Instantly share code, notes, and snippets.

@bitmvr
Last active January 6, 2024 14:02
Show Gist options
  • Save bitmvr/80efe9a62956d2115f572678c42977dd to your computer and use it in GitHub Desktop.
Save bitmvr/80efe9a62956d2115f572678c42977dd to your computer and use it in GitHub Desktop.
Add Text to beginning of any line that doesn't begin with #
sed -E 's/(^[^#].*$)/INSERT_TEXT_HERE \1/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment