I want to print old and new values of some field in Awk script. This is wat I done!
Sample file is as follows
But the output I god is bit different
What must be the problem here?
I am using bash.
I want to print old and new values of some field in Awk script. This is wat I done!
Sample file is as follows
But the output I god is bit different
What must be the problem here?
I am using bash.
Try this one
#!/usr/bin/awk
{
old = new
new = $1
print "Old value is " old " New value is " new
}
Not sure about your requirment!!!
Chears
User_prady
new is not a shell variable