I don't understand
#!/bin/bash
# Listador de archivos y directorios ocultos
DIR=$1
if [ -z $DIR ]; then
echo "El primer argumento debe ser un directorio"
exit 1
fi
if [ ! -d $DIR ]; then
echo "El directorio debe existir"
exit 1
fi
for i in $DIR/.*; do
echo "Encontré el elemento oculto $i"
done
echo "Saliendo..."
--------------------------------------------------------
Hi, I'm sorry but I don't understand the significate to (!) and (-d) in the line 10. Could you explain me it? please.
Thanks to all.
|