07-13-2010
1,
0
Join Date: Jul 2010
Last Activity: 27 July 2010, 5:07 PM EDT
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
Need a script
Hi All,
I'm new to Shell scripting.
I need a script, that reads the last line of a file(name is passed as a command line argument) and checks if last line has 'END OF FILE' in it or not.
If it does not have 'END OF FILE' in it, then it should exit.
Could anyone help me with the script.
Thanks.