1 2 3 4 5 6 7
#!/bin/sh JOHN_DIR="/home/rebecca/shed/gnom/john/ads" johnfile="$JOHN_DIR/$(ls "$JOHN_DIR"|shuf -n1)" anytopnm <"$johnfile" | ppmtoppm | pnmscale -height=114