From 70100bfce3e3bfcb1b8641096e11539aef83a4d2 Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Mon, 16 Oct 2023 22:09:11 -0500 Subject: [PATCH] [NEW] text.bash: very primitive sed escaper (patches welcome) --- text.bash | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 text.bash diff --git a/text.bash b/text.bash new file mode 100644 index 0000000..b585f37 --- /dev/null +++ b/text.bash @@ -0,0 +1,2 @@ +# TODO: finish with all metacharacters needing escapes +sedify() { sed 's/\([$\/]\)/\\\1/g' <<<"$1" ; }