Name: Anonymous 2009-04-01 16:01
Take a number from the standard input and output "Sussman" this many times, using Python.
chris@chrislaptop ~> n=`cat`; yes "Sussman" | head -n $n | tr -d '\n'
fish: Unknown command “n=`cat`”. Did you mean “set n `cat`”? For information on
assigning values to variables, see the help section on the set command by typing
“help set”.
head: option requires an argument -- n
usage: head [-n lines | -c bytes] [file ...]
read n;yes "Sussman"|head -n$n
C:\> read n;yes "Sussman"|head -n$n
Bad command or filename - "read".
Bad command or filename - "head".
C:\>
(defun sussman (n)
(if (> n 0)
(progn
(format t "Sussman~%")
(sussman (1- n)))))
(sussman (coerce (read) 'number))