Suppose I have a file which has either the contents
CALLED on <date & time>
RUNNING on <date & time>
or
CALLED on <date & time>
RUNNING on <date & time>
SHUTTING_DOWN on <date & time>
DOWN on <date & time>
I don't care about the <date & time> part... I just need to know if the last line in that file starts with 'RUNNING' or 'DOWN' (have to run another script accordingly), how would I do this without Perl?