Link to home
Start Free TrialLog in
Avatar of naveenraj
naveenrajFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Find and replace

Hi , I have a file containg fix tags seperated by '|' symbol. I liked to see all the fix tags in a new line. I thought it would be better way to find and replace all the pipe symbol with carraige return or new line chanrater. I dont know how to do it. Any suggestions.

eg) 8=FIX.4.4|9=197|35=9|34=59518|52=20080613-09:15:34|49=MEFF|

want out out like
8=FIX.4.4
9=197
35=9
34=59518
52=20080613-09:15:34
49=MEFF

Regards
Naveen.
ASKER CERTIFIED SOLUTION
Avatar of mvidas
mvidas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
echo "8=FIX.4.4|9=197|35=9|34=59518|52=20080613-09:15:34|49=MEFF|"|tr '|' '\012'
Avatar of naveenraj

ASKER

thanks mvidas.. I cld not get notepad2, but the pgm helped me..
Happy to help, Naveen! Notepad2 obviously is not a requirement, I mostly use it for it's syntax highlighting as well as it's portability (I keep it on my USB drive to use anywhere, as it does not require an install to use).

Let me know if you need any tweeks or anything
Matt