Hi Folks,
I am working on a data extraction script in perl.I am a begineer in perl and shell scripting. So i need your inputs to solve the script problem.
I have data coming from database in the format :-
<b> _ABC (Apply Changes) (p) </b> _EFG | HIJ | KLM | WER
<b> _E3R (Apply Changes) (p) </b> _UIG | IJJ | OLK | JWR
I need :-
_ABC \t _EFG \t HIJ \t KLM \t WER
_E3R \t _UIG \t IJJ \t OLK \t JWR [ \t = tab delimited ]
I have tried sed on the comand prompt :-
echo "<b> _ABC (Apply Changes) (p) </b> _EFG | HIJ | KLM | WER" | sed "<b> /(./) </b> /(./) | /(./) | /(./) /\1 \2 \3 \4/"
and
echo "<b> _ABC (Apply Changes) (p) </b> _EFG | HIJ | KLM | WER" | sed " /(./) | /(./) | /(.*/) /\1 \2 \3 \4/"
but i am not getting the desired output.
- Thanks !!!
Subhotech