et_phonehome_2 Topic Starter
Thanked: 1 Posts: 40
|
 |
« on: November 13, 2009, 03:13:54 PM » |
|
I have a file where the contents of a parameter can come in any order:
part=NYRS1996,idm=CFTRCFG,type=message,msg=test idm=CFTRCFG,type=message,msg=test,part=NYRS2002 part=NYRS2014,idm=CFTRCFG,type=message,msg=test idm=CFTRCFG,part=NYRS3003,type=message,msg=test part=NYRS3007,idm=CFTRCFG,type=message,msg=test .....
I need to extract the filed after "part=", eg., NYRS1996 NYRS2002 NYRS2014 NYRS3003 NYRS3007
I was hoping to avoid to avoid writting a cumbersome script to do this. Is it possible to do this with a one/two liner unix command like sed or awk?
|