Skip to content

Instantly share code, notes, and snippets.

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 sodonnell/6ff0bd427368f37317bd321de5953478 to your computer and use it in GitHub Desktop.
Save sodonnell/6ff0bd427368f37317bd321de5953478 to your computer and use it in GitHub Desktop.
Replacing strings in a single file using Perl
sudo perl -pi -e 's/Defaults requiretty//' /etc/sudoers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment