annotate bin/addquote @ 2320:da776ff681e5

<Jafet> (echo \'#!/bin/sh\'; echo \'a() { p=$(echo -n $(ps -p $1 -oppid | tail -1)); if ps -p $p -ocmd | tail -1 | egrep " \\| cat\\$"; then ps -p $1 -ocmd | tail -1; else a $p; fi }\'; echo \'a $$\') > bin/quine2 && quine2 a b c
author HackBot
date Fri, 01 Mar 2013 02:07:19 +0000
parents 7914d7e0b500
children 03afb1619ef2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e037173e0012 Initial import.
HackBot
parents:
diff changeset
1 #!/bin/sh
e037173e0012 Initial import.
HackBot
parents:
diff changeset
2 [ "$1" ] || exit 1
e037173e0012 Initial import.
HackBot
parents:
diff changeset
3 printf "%s\n" "$1" >>quotes
2114
7914d7e0b500 <ais523> revert 87c64ef250a0
HackBot
parents: 2113
diff changeset
4 printf "%d) %s" $(qc | cut -d' ' -f1) "$1"