unix programming 2

Document Sample
unix programming 2 Powered By Docstoc
					DATE:                                       PAGE NO:


program to display files in a directory


echo "enter a directory path:"

read a



if [ -d $a ]

then



ls $a



else

echo "$a is not a directory"



fi

~

output:

enter a directory path:

temp

one two

[10A91A0570@Linux lab]$ ./prgm4.sh

enter a directory path:

one

one is not a directory




UNIX LAB                                  10A91A0570

				
DOCUMENT INFO
Shared By:
Tags:
Stats:
views:5
posted:9/22/2013
language:
pages:1