Created
May 23, 2020 20:36
-
-
Save bing0o/5f4c422a1ba446a5195be4e0286dc620 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| transfer() { | |
| [ -z "$1" ] && { echo "Usage: ./transfer file.txt"; exit 1; } | |
| [ -z "$2" ] && fl=${1##*/} || fl=$2 | |
| curl --upload-file $1 https://transfer.sh/$fl | |
| } | |
| transfer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment