aboutsummaryrefslogtreecommitdiff
path: root/files/.lessfilter.sh
blob: 86d68338b9508ba9ea728b3c5b349225e4757f9e (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh

case $1 in
    *.xml) if [ -x `which xmlstarlet 2>/dev/null` ]; then exec xmlstarlet fo "$1"; fi ;;
    *.json) if [ -x `which jq 2>/dev/null` ]; then exec jq -C . "$1"; fi ;;
    *.md) if [ -x `which pandoc 2>/dev/null` ]; then exec pandoc -t plain "$1"; fi ;;
esac

exit 1