Saturday, 31 May 2014

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: