I'm running on the following:
my output is this:
54 abc Full xyz 36615 1168136491
54 abc Full xyz 36582 1168088618
I want to add on to the command line something that will allow me to manipulate the last field of each record.
so...
I want to take that last field on the line, run it through a program, and put the output of that in its place.
final result:
54 abc Full xyz 36615 Sat Jan 6 20:21:31 2007
54 abc Full xyz 36582 Sat Jan 6 07:03:38 2007
I'm wondering how I can use awk to do this instead of trying out how to use sed...
Code:
bpdbjobs -report -most_columns | awk -F',' {'print $4, $5, $6, $7, $1, $9'} | grep -v ^[0,1]
my output is this:
54 abc Full xyz 36615 1168136491
54 abc Full xyz 36582 1168088618
I want to add on to the command line something that will allow me to manipulate the last field of each record.
so...
Code:
bpdbjobs -report -most_columns | awk -F',' {'print $4, $5, $6, $7, $1, $9'} | grep -v ^[0,1] | sed'/[0-9]*$/`myprogram ${aReferenceToNumberBeingReplaced}'
I want to take that last field on the line, run it through a program, and put the output of that in its place.
final result:
54 abc Full xyz 36615 Sat Jan 6 20:21:31 2007
54 abc Full xyz 36582 Sat Jan 6 07:03:38 2007
I'm wondering how I can use awk to do this instead of trying out how to use sed...