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

View Raw

More Information

➡️ 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