Linux books you just can't live without:
I always wanted to colorize a 'cat' of a file (lord knows why?!), but tonight, I figured out how to do it!
You need to install the packages
In Fedora, its as easy as
yum install -y highlight source-highlightAfter this is complete, generate the script called 'scat' in /usr/bin:
#!/bin/bash INFILE="$1" if [ -n "$2" ]; then OPTS="-S $2" fi highlight $INFILE -A $OPTS
|
|
