naveenraj
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=59 518|52=200 80613-09:1 5:34|49=ME FF|
want out out like
8=FIX.4.4
9=197
35=9
34=59518
52=20080613-09:15:34
49=MEFF
Regards
Naveen.
eg) 8=FIX.4.4|9=197|35=9|34=59
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
echo "8=FIX.4.4|9=197|35=9|34=5 9518|52=20 080613-09: 15:34|49=M EFF|"|tr '|' '\012'
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
Let me know if you need any tweeks or anything
Matt