Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:18
Show Gist options
  • Select an option

  • Save dacr/e186b91b0ebab2ca7615fbb8bf14a826 to your computer and use it in GitHub Desktop.

Select an option

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/e00471bf94588b7b9bd160dcb146c147c70b780b

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