[NEW] text.bash: very primitive sed escaper (patches welcome)
This commit is contained in:
parent
c275bfefe5
commit
70100bfce3
1 changed files with 2 additions and 0 deletions
2
text.bash
Normal file
2
text.bash
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# TODO: finish with all metacharacters needing escapes
|
||||
sedify() { sed 's/\([$\/]\)/\\\1/g' <<<"$1" ; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue