Mercurial > repo
changeset 1580:42713ff67415
<fizzie> cat bin/paste | paste
author | HackBot |
---|---|
date | Mon, 21 Jan 2013 10:15:33 +0000 |
parents | 9ce3afae89b0 |
children | f75daa8b4329 |
files | paste/paste.30457 |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/paste/paste.30457 Mon Jan 21 10:15:33 2013 +0000 @@ -0,0 +1,14 @@ +#!/bin/bash +if [ ! "$1" ] +then + PASTE=- +else + PASTE="$1" +fi + +PASTENUM="$RANDOM" + +mkdir -p $HACKENV/paste + +url paste/paste."$PASTENUM" +cat "$PASTE" > $HACKENV/paste/paste."$PASTENUM" \ No newline at end of file