aboutsummaryrefslogtreecommitdiff
path: root/preprocessor/url.sh
diff options
context:
space:
mode:
Diffstat (limited to 'preprocessor/url.sh')
-rwxr-xr-xpreprocessor/url.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/preprocessor/url.sh b/preprocessor/url.sh
new file mode 100755
index 0000000..bc4e221
--- /dev/null
+++ b/preprocessor/url.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+read_from_pipe() { read "$@" <&0; }
+
+echo "$(read_from_pipe | head -1)"