My build of nnn with minor changes
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
123456789101112 |
- #!/usr/bin/env sh
-
- # Description: View a PDF file in pager
- #
- # Shell: POSIX compliant
- # Author: Arun Prakash Jana
-
- if ! [ -z "$1" ]; then
- if [ $(head -c 4 "$1") = "%PDF" ]; then
- pdftotext -nopgbrk -layout "$1" - | sed 's/\xe2\x80\x8b//g' | $PAGER
- fi
- fi
|