Hello guys,
I am trying to split the following line using awk. I have tried every possible unix command sed, awk, cut, and tr, but to not avail.
PLS can you help.
What I am tryin to do is as follows
Line that needs to be processed is as follows:
X11.base.rte 4.3.3.75 COMMITTED AIXwindows Run time Enviro
X11.base.smt 4.3.3.50 COMMITTED AIXwindows Runtimed Shared
I want to split the following above line to the following:
X11.base.rte,4.3.3.75,COMITTED,AIXwindows Run time Enviro
X11.base.smt,4.3.3.50,COMITTED,AIXwindows Runtimed Shared
Can I achieve the above using AWK????????
I have used the following, but its not a perfect solution
echo "X11.base.rte 4.3.3.75 COMMITTED AIXwindows Run time Enviro" | awk -f '{print $1","$2","$3","$4 $5 $6....$n}'
Is there another way of achieving the above????
YOUR HELP WILL BE APPRECIATED.
Ed
THKS.
I am trying to split the following line using awk. I have tried every possible unix command sed, awk, cut, and tr, but to not avail.
PLS can you help.
What I am tryin to do is as follows
Line that needs to be processed is as follows:
X11.base.rte 4.3.3.75 COMMITTED AIXwindows Run time Enviro
X11.base.smt 4.3.3.50 COMMITTED AIXwindows Runtimed Shared
I want to split the following above line to the following:
X11.base.rte,4.3.3.75,COMITTED,AIXwindows Run time Enviro
X11.base.smt,4.3.3.50,COMITTED,AIXwindows Runtimed Shared
Can I achieve the above using AWK????????
I have used the following, but its not a perfect solution
echo "X11.base.rte 4.3.3.75 COMMITTED AIXwindows Run time Enviro" | awk -f '{print $1","$2","$3","$4 $5 $6....$n}'
Is there another way of achieving the above????
YOUR HELP WILL BE APPRECIATED.
Ed
THKS.