diff options
Diffstat (limited to '')
| -rwxr-xr-x | bin/tmp | 15 | ||||
| -rwxr-xr-x | bin/tmpname | 14 |
2 files changed, 29 insertions, 0 deletions
@@ -16,6 +16,21 @@ help() { Options: -d delete the remote "tmp/" folder -h, --help show this message + + + Copies a file to the public server. + + + Examples: + + Copy f.txt: + + $ tmp f.txt + + + Cleanup the $REMOTE: + + $ tmp -d EOF } diff --git a/bin/tmpname b/bin/tmpname index d83fc875..89d7e4d5 100755 --- a/bin/tmpname +++ b/bin/tmpname @@ -15,10 +15,24 @@ help() { Options: -h, --help show this message + Generate a temporary name. + + + Examples: + + Create a temporary file: + + $ OUT="$(tmpname)"; touch "$OUT"; cmd > "$OUT" + + + `cd` into a temporary directory: + + $ DIR="$(tmpname)"; mkdir -p "$DIR"; cd "$DIR" EOF } + for flag in "$@"; do case "$flag" in --) |
