Skip to content

Instantly share code, notes, and snippets.

@afonsoaugusto
Created September 2, 2021 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afonsoaugusto/b3a63fa8ea585dc8324e32a85949fdf5 to your computer and use it in GitHub Desktop.
Save afonsoaugusto/b3a63fa8ea585dc8324e32a85949fdf5 to your computer and use it in GitHub Desktop.
Sed in all files change prevent_destroy true to false
#!/bin/bash
grep -rl "prevent_destroy = true" . | xargs sed -i 's/prevent_destroy = true/prevent_destroy = false/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment