Ver Mensaje Individual
  #12 (permalink)  
Antiguo 03/12/2010, 12:55
elManya
 
Fecha de Ingreso: junio-2010
Mensajes: 43
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: problema programcion shell if

[QUOTE=jferrero;3659114]Hay que leer un poquito más, el manual de Bash...

[HIGHLIGHT="Bash"]#!/bin/bash

directorio='.'

IFS="
"

for i in $(ls -la $directorio | egrep "^-")
do
tamano=$(echo $i |awk '{ print $5 }')

if [ $tamano lt 600 ]
then
echo $i
fi
done
[/HIGHLIGH


algun manual bueno y en español
muchas gracias