Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out

dir or not

VIEWS: 2 PAGES: 1

									echo "enter a directory path" read a

if [ -d $a ] then ls $a else echo "$a not a directory" fi out put: enter a directory path temp
one two [10A91A05A3@Linux temp]$ ./prog6.sh enter a directory path neelima neelima
not a directory

								
To top