diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2024-12-27 15:54:30 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2024-12-27 15:54:30 +0800 |
| commit | fac40d5b43aa2545b2e76534afdfaba970755c49 (patch) | |
| tree | 437f8d8a86ba8cdec4eaafd063c338be4c65b387 | |
| parent | 212f89270bee3367af3810d8e974ca1ea010b692 (diff) | |
add snippet
| -rw-r--r-- | snippets/bash_replace_newline_in_var | 1 |
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'/ } | |||