This is because your open brace is on the next line.
So you need to write BEGIN { ... as follows:
BEGIN { print "Processing file: " filename }
Please also note that the main block can be rewritten to:
/Starting/ {print "The bill import has been Started on "$1 " " $2}
That is, if () and $0 are implicit, so you can skip them.
fedorqui
source share