regarding files

i want to read the file from EOF to 1st line of the file .
is there anyway to do this.
sree

You mean you want to reverse the order of the lines in a file? try tac

can u tell about tac
how we can use tac

try man tac

It's possible your system does not have it. to see if it is on your box try this command:

which tac

but i wnat to get the lines from last to 1st programatically
in my system tac is there.

Try sed:

sed -n '1!G;h;$p' <filename>

This thread looks like an extension of mozilla object

It also looks like homework to me.

It occured to me as well. Two different threads were opened on the same topic. But retrieving the current URL from mozilla did not look so much as a homework question. I will leave it open. Probably the next person's comments could be a decider.