Write a shell script which displays the list of all files in the given directory. - Computer Programming

Latest

C C++ Java Python Perl Programs Examples with Output -useful for Schools & College Students

Thursday, October 6, 2011

Write a shell script which displays the list of all files in the given directory.


Write a shell script which displays the  list of all files in the given directory. 


echo Menu
echo 1.Short format display
echo 2.Long format display
echo 3.Hidden files to display
echo Enter ur choice:
read ch
case ch in
1) ls $a;;
2) ls –l $a;;
3) ls –la $a;;
*)  echo Choice is not correct;;
esac

No comments:

Post a Comment