hi,
i want to write the script to list atleast one file inside that directory
eg:
/home/Log/amp01
/home/log/amp02
.
.
.
/home/log/amp..N
want to see atleast one file inside the /home/log/amp01 .... amp(N)
if it not there.. need to give that no file exists inside this DIR
It's not clear what you're trying to achieve, please clarify your question.
Regards
/home/Log/amp01
/home/log/amp02
.
.
.
/home/log/amp100
i want to write script such a way that
it will go to cd/home/log/am01 ... amp100 folder
and checks the files (at least )contains in amp01 folders
if supose /home/log/amp52 is empty directory
it should say that directory is empty..
ls -lA | grep ^d | awk '{print $2" "$9}'
If the first field is greater than 2, there is something in the directory