BEGIN {
    print "I am starting\n";
}
END {
    print "I am ending\n";
}

print "this is the real script\n";
