You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
118B

  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 "$@"