Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
My requirement is, i want to Validate a UNIX filesystem path say for exmaple:- /abc/def/ghi/jkl and report if any files found.
Could somebody advice a simple script or logic.
Please.

Have you tried the file operators to check the directory?
if [ -d /abc/def/ghi/jkl ] ; then
echo "Found"
fihttp://www.bo.infn.it/alice/alice-d...
Have you looked at the find command ?
find /abc/def/ghi/jkl
man find for more details.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |