39. WASS which accept a file name and print last 10 lines of the file
Page 1 of 1
39. WASS which accept a file name and print last 10 lines of the file
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
Similar topics
» 32. WASS to accept 2 file names if both exits and not empty then concatenate both and store the content in a file called merged.txt
» 7. WASS to accept a file name and convert its content to uppercase
» 15 Program - WASS to accept 10 names and stores in a file called NAME.DBF
» Prog 17. WASS to accept a weekday ( 1 ,2 3 …7) from user using command line and print appropriate day in words ( Monday , Tuesday , Wednesday )
» Prog31. WASS to accept a color name from the user and check whether its equal to BLACK , if so print message as accepted else display not accepted.
» 7. WASS to accept a file name and convert its content to uppercase
» 15 Program - WASS to accept 10 names and stores in a file called NAME.DBF
» Prog 17. WASS to accept a weekday ( 1 ,2 3 …7) from user using command line and print appropriate day in words ( Monday , Tuesday , Wednesday )
» Prog31. WASS to accept a color name from the user and check whether its equal to BLACK , if so print message as accepted else display not accepted.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum