Hi Greg,
Thanks for your response. Sounds good so far, but there’s
x0d x1c x0d x0b before each MSH (except for the first)
So I need to replace that whole string with one xa I’m thinking.
Would this work?:
set text “x0d x1c x0d x0b”
regsub -all {$text} $file {x0a} newfile
… and then I can build the FHS,BHS,BTS,FTS and sandwich it.
BTW, you used /… is that what I should use instead of here?
Thanks!