On Mon, Oct 25, 2004 at 07:43:01PM +0200, Jhamil Mercado wrote:
> dado un archivo bajo el siguiente formato
> path_1:Descricion del archivo 1
> path_2:Descricion del archivo 2
> path_3:Descricion del archivo 3
> path_4:Descricion del archivo 4
while read line; do
ARCHIVO=`echo $line | cut -d: -f1`
DESCR=`echo $line | cut -d: -f1`
if [ ! -f $ARCHIVO ]; then
echo "$DESCR no existe"
else
stat --format="$DESCR es del %y" $ARCHIVO
fi
done < lista-de-archivos
unset line
--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Industry suffers from the managerial dogma that for the sake of stability
and continuity, the company should be independent of the competence of
individual employees." (E. Dijkstra)