Mercurial > repo
view bin/paste @ 5310:891fa7b0ba86
<Jafet> ` echo \'main(i){while(i+=2<3);}\' >/tmp/a.c && gcc -c -std=c99 -Wall -Wextra /tmp/a.c
author | HackBot |
---|---|
date | Sun, 12 Apr 2015 04:46:23 +0000 |
parents | 1bc67ded06c4 |
children |
line wrap: on
line source
#!/bin/bash if [ "$1" ] && url "$1" 2>/dev/null # Save making a file when it already exists. then true else PASTENUM="$RANDOM" mkdir -p $HACKENV/paste url paste/paste."$PASTENUM" cat -- "${1--}" > $HACKENV/paste/paste."$PASTENUM" fi