aboutsummaryrefslogtreecommitdiffhomepage
path: root/snippets/bash_replace_newline_in_var
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-12-27 15:54:30 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-12-27 15:54:30 +0800
commitfac40d5b43aa2545b2e76534afdfaba970755c49 (patch)
tree437f8d8a86ba8cdec4eaafd063c338be4c65b387 /snippets/bash_replace_newline_in_var
parent212f89270bee3367af3810d8e974ca1ea010b692 (diff)
add snippet
Diffstat (limited to 'snippets/bash_replace_newline_in_var')
-rw-r--r--snippets/bash_replace_newline_in_var1
1 files changed, 1 insertions, 0 deletions
diff --git a/snippets/bash_replace_newline_in_var b/snippets/bash_replace_newline_in_var
new file mode 100644
index 0000000..afc86d6
--- /dev/null
+++ b/snippets/bash_replace_newline_in_var
@@ -0,0 +1 @@
${dir/$'\n'/ }