Hi
I have a file which is having line like below
Personal Unit=AU003 (Industrial Products Division),Plant=B00089,Departmant=D110
When ever i fine line starting sith Personal Unit and contains Plant Department I need to pick this line and format it like
Personal Unit=AU003
Plant=B00089
Departmant=D110
-->RAM:AU003:B00089
110:system date:header of the file
i used sed
sed -e '/Personal Unit/{;h;s/^/#/p;x;}' -e '/Business Unit/{s/,Plant/\nPlant/g' -e 's/,Departmant/\nDepartmant/g'} FileName
But it is not fullfilling my all need
can any one please suggest