./1.sh 1234txt > test2
(Is complicated)
Result=
test2
How I want to ...
./1.sh 1234txt or ./1.sh *.txt
Result=
1234txt .. The original name for himself as
How do I modify? ..
I do not need to print the screen.
Need only to convert ..
Only text / plain I'd like to convert ..
It is difficult
Please help me.
http://www.yolinux.com/TUTORIALS/Lin...ellScript.html
1.sh
#!/bin/bash
CAT=/bin/cat
COLCRT=/usr/bin/colcrt
echo Content-type: text/plain
echo ""
if [[ -x $CAT && -x $COLCRT ]]
then
$CAT $1 | $COLCRT
else
echo Cannot find command on this system.
fi
Bookmarks