aboutsummaryrefslogtreecommitdiff
path: root/bin/tmp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbin/tmp15
-rwxr-xr-xbin/tmpname14
2 files changed, 29 insertions, 0 deletions
diff --git a/bin/tmp b/bin/tmp
index e2d16b75..2dc0b484 100755
--- a/bin/tmp
+++ b/bin/tmp
@@ -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
--)