#!/bin/bash if [ $# -lt 1 ] then echo "Error: ingrese como parametro el nombre de un directorio" exit 10 fi if [ -d "$1" ] then ls "$1" exit 0 else echo "No existe un directorio llamado $1" exit 11 fi