Pages

Tuesday, March 19, 2013

Write a shell script to open a given file?


$vi open.sh
echo “enter a filename to open “
read fname
cat $fname
:wq

** How to excutre shell script ?
$./open.sh or $sh open.sh

No comments:

Post a Comment