1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh # Print a fortune cookie for interactive shells: case $- in *i* ) # We're interactive echo fortune fortunes fortunes2 linuxcookie echo ;; esac