📅  最后修改于: 2022-03-11 14:50:49.236000             🧑  作者: Mango
# !/bin/bash
echo "enter directory name"
read dir
if[ -d $dir]
then
echo "list of files in the directory"
ls –l $dir|egrep ‘^d’
else
echo "enter proper directory name"
fi