CHRIST MCA 2009-2012
Would you like to react to this message? Create an account in a few clicks or log in to continue.

39. WASS which accept a file name and print last 10 lines of the file

Go down

39. WASS which accept a file name and print last 10 lines of the file  Empty 39. WASS which accept a file name and print last 10 lines of the file

Post  shariff Thu Jul 22, 2010 9:18 pm


clear
ls
echo "enter the file name"
read file
if test -f $file
then
echo "valid file"
else
echo "invalid file"
fi
tail $file

shariff

Posts : 1
Join date : 2010-07-21

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum