aboutsummaryrefslogtreecommitdiff
path: root/bin/yiff
blob: 24759feb4847435656e6aff5e05f10b978b4f965 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/mksh
# Script by Ypnose - http://ywstd.fr

while IFS=$'\n' read -r LINE; do
	CHAR="${LINE::1}"
	case $CHAR in
		\-) print -- "\033[1;31m${LINE}\033[0m" ;;
		\+) print -- "\033[0;32m${LINE}\033[0m" ;;
		\@) print -- "\033[1;35m${LINE}\033[0m" ;;
		*) print -- "$LINE" ;;
	esac
done

exit