Mercurial > repo
view paste/paste.12606 @ 11253:8ccdc498f164
<b_jonas> slashlearn greater//A greater than sign instructs the shell to send the output of the command to a file. Not very mnemonic, but a grater is the closest thing to a file that ASCII has.
author | HackBot |
---|---|
date | Wed, 06 Dec 2017 09:52:00 +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"