Script que cuente cuantos archivos y cuantos directorios hay en el directorio pasado como argumento:
DI=0 FI=0 for I in $1/* do if [ -f $I ] then let FI=FI+1 fi if [ -d $I ] then let DI=DI+1 fi done
Script que cuente cuantos archivos y cuantos directorios hay en el directorio pasado como argumento:
DI=0 FI=0 for I in $1/* do if [ -f $I ] then let FI=FI+1 fi if [ -d $I ] then let DI=DI+1 fi done
Gracias por tu aporte.
Cualquier aporte se agradece