💾 Archived View for unixcat.coffee › techne › sed.gmi captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

➡️ Next capture (2022-01-08)

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

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

~~~

Last updated: 2021-11-19

Back to Techne index

Back to unixcat.coffee