Update -- lesspipe.sh
authorSteve Youngs <steve@steveyoungs.com>
Sat, 20 Feb 2021 05:46:21 +0000 (15:46 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Sat, 20 Feb 2021 05:46:21 +0000 (15:46 +1000)
commitc10153f28554c149906619ccedf2258079aa4838
treea7ead661845ee1af224a7817a2eb4e36aef37e31
parent27d480dd71227fadbf9b77b08feeecb9b73ed3e4
Update -- lesspipe.sh

* usr/bin/lesspipe.sh: Redirect stderr to /dev/null once
script-wide instead of for each individual command.
Use the '-b' file(1) option instead of piping through awk.
Process HTML files with 'lynx -dump'
Handle rpm if rpm is installed.
Handle rar if unrar is installed.

Signed-off-by: Steve Youngs <steve@steveyoungs.com>
usr/bin/lesspipe.sh