💾 Archived View for unixcat.coffee › techne › sed.gmi captured on 2022-01-08 at 13:45:54. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

🚧 View Differences

-=-=-=-=-=-=-

Sed

Comment a line that contains a specific string

sed -i '/<pattern>/s/^/#/g' file

Uncomment a line that contains a specific string

sed -i '/<pattern>/s/^#//g' file

Remove line matching "pattern" from file

sed -i '/pattern/d' file

~~~

Back to Techne index

Back to unixcat.coffee