System - HP UNIX (HP-UX hq5 B.11.00 U 9000/800 (td))
I have an HL7 (Health Level Seven) pipe-delimied file that does not have any carriage returns/line feeds. I need to insert a line feed before each segment type (MSH, PID, PV1, OBX, etc.) so that my PROGRESS program can read each line and determine the segment type for processing.
Input file looks like this:
I need a command (I've tried sed) to convert the file to look like this:
If anyone can give me a command to do this, I will be most grateful.
Last edited by zxmaus; 02-18-2010 at 03:37 PM..
Reason: added code tags
I don't think sed has any such limit. It's a stream editor, not a line editor.
This is implementation-dependent. GNU sed doesn't. The sed FAQ details what versions have what limitations but it's not clear which version is what HPUX has.
Don't you need -r for brackets and backreferences?
HI Bruce from Central PA
I have never used Unix but am sick of Microsoft so want to learn it.
I use to own a computer store front and training center and stated our with Atari, Commodore and the 1st PC and MS/DOS then Windows
BUT sick of Microsoft controlling the computer industry.
... (2 Replies)
brothers and sisters
iam a new member of your respectful forum
hope to accept me
i really would like to an expert in unix and linux
so please tell me how could ?
and what i should have ?
i want to make my project in these subject
but i dont know what to do
and which... (12 Replies)
Discussion started by: yemen
12 Replies
5. Post Here to Contact Site Administrators and Moderators
I must have missed it , but what do Junior Memeber/Member mean?
is there a reference arounf for the significance of these titles ?
Thanks,
Hezki (3 Replies)