summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-03-25 20:16:46 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-03-25 20:16:46 +0100
commitefbe42bd1bf65e47cde554c9b4d8c0bde7f22b17 (patch)
tree15d9dd527d7d78c01a051c01f9c6b88208f18318
parent563576ff0e054ac73ebf92388e7107bdf7240bad (diff)
downloadbin-efbe42bd1bf65e47cde554c9b4d8c0bde7f22b17.tar.gz
bin-efbe42bd1bf65e47cde554c9b4d8c0bde7f22b17.tar.xz
add new scripts
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xgetpw-single3
-rwxr-xr-xpaste-makepkg-log4
2 files changed, 7 insertions, 0 deletions
diff --git a/getpw-single b/getpw-single
new file mode 100755
index 0000000..11a01c9
--- /dev/null
+++ b/getpw-single
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+getpw "$@" | head -1 | cut -d\ -f1
diff --git a/paste-makepkg-log b/paste-makepkg-log
new file mode 100755
index 0000000..bd7d25a
--- /dev/null
+++ b/paste-makepkg-log
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+sed -ri "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g; s/\x0f//g;" "$@"
+fb "$@"