>>> On 11/14/2008 at 12:11 PM, John McKown <[EMAIL PROTECTED]> wrote: > I just had to post this. Sorry if it is stupid.
It's not stupid at all. Similar things have been done in the past with (at least) the less command. If you're running on SLEx or openSUSE, take a look at the LESSOPEN environment variable, and the script that it invokes, /usr/bin/lessopen.sh (on Slackware systems, this is /usr/bin/lesspipe.sh). If you wanted to get even fancier, you might use the file command to figure out what the file type is without depending on trailing filename qualifiers. Mark Post ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
