BEGIN and END blocks in LINUX

How do we differentiate and distinguish between the statements ie actions to be performed in BEGIN and END blocks in LINUX?

is it that the BEGIN block picks up the input and the END block executes after all input is picked up and processed?

Replies

You are reading an archived discussion.

Related Posts

hii.i m from electronics and communication branch final year..plz suggest me some relevant projects....and from where i can get d idea abt it.....
Could u suggest me some good mini project topic's for me
eg: nawk '/Tomy/{name[NR]=$1};\ END{for(i in name){print name}} 'db i am not sure what is the metacharacter '\' is doing here.
I did not use macros in java. I want to know whether the macros can be used in side the java program?