💾 Archived View for freeshell.de › tldr › sed.gmi captured on 2023-09-28 at 16:53:48. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-04-28)
-=-=-=-=-=-=-
Edit text in a scriptable manner.
sed 's/{regular_expression}/{replace}/' {filename}
sed -r 's/{regular_expression}/{replace}/g' {filename}
sed -i 's/{find}/{replace}/g' {filename}
sed '/{line_pattern}/s/{find}/{replace}/' {filename}
sed '/{line_pattern}/d' {filename}
sed 11q {filename}
sed -e 's/{find}/{replace}/' -e 's/{find}/{replace}/' {filename}
sed 's#{find}#{replace}#' {filename}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).