head 118 B

12345678910
  1. #!/bin/sh
  2. n=10
  3. case "$1" in
  4. -n) n=$2; shift 2 ;;
  5. -n*) n=${1#-n}; shift ;;
  6. esac
  7. exec sed ${n}q "$@"