Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:12
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 dacr/e186b91b0ebab2ca7615fbb8bf14a826 to your computer and use it in GitHub Desktop.
Save dacr/e186b91b0ebab2ca7615fbb8bf14a826 to your computer and use it in GitHub Desktop.
sed cheat sheet / published by https://github.com/dacr/code-examples-manager #e56cec1a-106c-4844-a3d3-0c562ae28684/93a4003fe5ce777f7bf73beda7d2ab318674201

sed cheat sheet

Substitute some file content

sed -i 's/^-Xms1g/-Xms8g/g' opensearch/config/jvm.options

Append a new line at the end of the file

sed -i '$aplugins.security.disabled: true' opensearch/config/opensearch.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment