Vivekanand Mathapati
Thursday, 21 May 2015
Write a shell script that accept the file name, starting and ending line number as an argument and display all the lines between the given line number. VTU MCA UNIX LAB9A
if [ -e $1 ]
then
sed -n "$2,$3 p" $1
else
echo "invalid in put"
fi
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment