On Wed, Dec 28, 2005 at 01:19:45AM +0100, Gregoire Favre wrote: > Hello again, > > it was a problem with the previous script : it leave "/" which have some > problem... this one is better : Time to go to bed... here's the correct one : #!/bin/bash while [ $# -ge 1 ]; do T=`cat $1 | grep "^T"|sed -e "s/^T //"` S=`cat $1 | grep "^S"|sed -e "s/^S //"` t=`echo $T|wc -w` s=`echo $S|wc -w` if [ ! $t -eq 0 ] && [ ! $s -eq 0 ]; then echo "$T"\|"$S" | sed -e "s/\//\-/g" >> /etc/master-timer/done echo $1 good EPG else echo $1 -en '\E[01;31m'"\033[1mbad\033[0m" EPG fi shift done sort /etc/master-timer/done | uniq -i > /etc/master-timer/done.sorted mv /etc/master-timer/done.sorted /etc/master-timer/done if [ -e /etc/master-timer/done.dat ]; then rm /etc/master-timer/done.dat fi -- Gr?goire FAVRE