I have a situation where I open a file in tcl proc and I am getting the value line by line. Since I am getting the whole file into a variable I have all the hl7 records in the variable. I have to split the records in the variable and display only the record with requested PID.
I have file with about 10 oru messages
I opened the file in tcl using open (like in file open)
I read the file line by line into a buffer
set data [exec cat