9 lines
256 B
Bash
9 lines
256 B
Bash
#!/bin/sh
|
|
|
|
url="https://bin.ixvd.net"
|
|
filepath="$1"
|
|
filename=$(basename -- "$filepath")
|
|
extension="${filename##*.}"
|
|
|
|
response=$(curl --data-binary @${filepath:-/dev/stdin} --url $url)
|
|
echo "$url$response"".""$extension" | tee >(xclip -selection clipboard)
|