From b98e05ba63f2e108df634b4d9f9e5530769c6b80 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 10 Jun 2021 18:58:52 +0200 Subject: Added scripts and readme --- open-stdin | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 open-stdin (limited to 'open-stdin') diff --git a/open-stdin b/open-stdin new file mode 100755 index 0000000..1cc54a5 --- /dev/null +++ b/open-stdin @@ -0,0 +1,11 @@ +#!/bin/sh + +# Saves standard input in a download folder and opens it with myopen +# Usage: open-stdin +# Requires: open-file + +folder=$HOME/Downloads/open-stdin + +tempfile=$(mktemp -p "$folder") + +cat > "$tempfile" && open-file -t "$1" "$tempfile" -- cgit v1.3