aboutsummaryrefslogtreecommitdiff
path: root/open-stdin
blob: 1cc54a5e6da7dfb16baaa523768867ad9e27d3f5 (plain)
1
2
3
4
5
6
7
8
9
10
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"

Generated with cgit - Back to sebastiano.tronto.net