Hi,
I have the following requirement.
I have a unix table as below
progname par1 par2 par3 par4
PROG1 abc def 0012 ooo
PROG2 wed xas 0100 xxx
PROG3 kkk ppp 0004 ppp
Different programs(ex:PROG1,PROG2..) accesses this table and update par3, corresponding to this progname... (i.e, when PROG1 is running, it updates it's corresponding par3 to 0013, similarly for other programs).. How can I achive this updation of par3 column for a particular row corresponding to that program thru shell scripting in a easy way)
After program PROG1 runs, the above table should look like
progname par1 par2 par3 par4
PROG1 abc def 0013 ooo
PROG2 wed xas 0100 xxx
PROG3 kkk ppp 0004 ppp
if PROG3 runs later then the table should look like
progname par1 par2 par3 par4
PROG1 abc def 0013 ooo
PROG2 wed xas 0100 xxx
PROG3 kkk ppp 0005 ppp
Can someone helpme out how this file column updation for a particular row can be achieved easily thru shell scripting.
Thanks for any of your inputs...