view bin/quote @ 6060:a8148392765d

<ais523> ` echo \'echo "$1" | as -c /dev/stdin -o temp.o; objdump -d temp.o | sed -e "1,/0000000000000000/d"\' >> bin/asm
author HackBot
date Fri, 16 Oct 2015 22:33:39 +0000
parents e037173e0012
children 797fb6694b97 3e54f8d1843f
line wrap: on
line source

#!/bin/sh
allquotes | if [ "$1" ]; then
    if expr "$1" + 0 >/dev/null 2>&1; then
        sed "$1q;d"
    else
        grep -P -i -- "$1"
    fi
else shuf -n 1; fi