Mercurial > repo
view paste/paste.12606 @ 6950:70e3abb6d6fa
<ais523> le/rn cat introduction/cat introduction is the process of piping one or more extra `cat` commands into your pipeline; occasionally this is even actually useful
author | HackBot |
---|---|
date | Wed, 24 Feb 2016 06:07:01 +0000 |
parents | 1bca98188e7f |
children |
line wrap: on
line source
#!/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"