aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2024-03-24 12:14:23 +0100
committerjakobst1n <jakob.stendahl@outlook.com>2024-03-24 12:14:23 +0100
commit41ee5aa3d76673460818f9855c77809a18d63057 (patch)
tree70c73f39c90ebd9bc54afda949479eca55d09dbf
parent5e9d927d4bdbe4db20218be4f8f22ddc65f8f3f3 (diff)
downloaddotfiles-41ee5aa3d76673460818f9855c77809a18d63057.tar.gz
dotfiles-41ee5aa3d76673460818f9855c77809a18d63057.zip
scripts
-rwxr-xr-xbin/esc2
-rwxr-xr-xbin/nterm3
2 files changed, 5 insertions, 0 deletions
diff --git a/bin/esc b/bin/esc
new file mode 100755
index 0000000..98e1571
--- /dev/null
+++ b/bin/esc
@@ -0,0 +1,2 @@
+#!/bin/sh
+sed -e 's/"/"\\""/g' -e 's/.*/"&"/'
diff --git a/bin/nterm b/bin/nterm
new file mode 100755
index 0000000..914b440
--- /dev/null
+++ b/bin/nterm
@@ -0,0 +1,3 @@
+#!/bin/sh
+# Meant to be used for a pipe into ´xargs -0´ for a input ending with newline
+tr '\n' '\0'