Recently Written · git

tmpl

Insanely simple templates

git clone https://github.com/equwal/tmpl

Log | Files | Refs


commit e3a219385b4bfd463c60c6b7c6d41cb8e82bd289
Spenser Truex <truex@equwal.com>
2025-09-12 07:56:53 +0000

Add append after match sed trick

 sed/append-after-match | 1 +
 1 file changed, 1 insertion(+)
diff --git a/sed/append-after-match b/sed/append-after-match
new file mode 100644
index 0000000..566870f
--- /dev/null
+++ b/sed/append-after-match
@@ -0,0 +1 @@
+sed "/# Use a comment for example to mark where you want to append/a\\$1" (FILE)<++>