view bin/addquote @ 4432:f88e208f239d

<kmc> echo \'as="$1"; shift; echo "$as" | gcc "$@" -c -x assembler /dev/stdin -o /tmp/as86.o && objcopy -O binary /tmp/as86.{o,bin} && xxd -p /tmp/as86.bin\' > bin/as86 && chmod +x bin/as86
author HackBot
date Mon, 10 Feb 2014 06:56:04 +0000
parents 7914d7e0b500
children 03afb1619ef2
line wrap: on
line source

#!/bin/sh
[ "$1" ] || exit 1
printf "%s\n" "$1" >>quotes
printf "%d) %s" $(qc | cut -d' ' -f1) "$1"