Questo script effettua la conversione di file in formato lit in file in formato htm, ed la versione testuale di Lit2Htm.
#!/bin/bash
#
# AUTHOR: Maurizio di NuvoleSparse
#
# License: GNU General Public version 2 or any later version.
# This program comes with ABSOLUTELY NO WARRANTY; for details
# see the COPYING file or visit "http://www.gnu.org/licenses/gpl.html".
# This is free software, and you are welcome to redistribute it under
# certain conditions. See the GPL license for details.
#
# Dependence:
# clit
#
while echo $1| grep -q ".[Ll][Ii][Tt]$" ; do
titolo=`echo $1 | sed -e "s/.[Ll][Ii][Tt]$//"`
if [ ! -d "$PWD/$titolo" ]; then
mkdir "$PWD/$titolo" 1>/dev/null 2>/tmp/lit2html.log
else
echo -e "\nLa cartella $PWD/$titolo esiste già.\
\nVuoi sovrascriverla? [s/N]"
read OUTPUT
case $OUTPUT in
[Ss][Ii]|[Ss]) rm -rf "$PWD/$titolo"; mkdir \
"$PWD/$titolo" ;;
*) exit 0 ;;
esac
fi
clit "$PWD/$1" "$PWD/$titolo"
shift
done
exit 0