Re: Sed script

1999-10-22 Thread Joakim Svensson
Hi all, >i need to extract the number 997841138254, or any other number from that >position, from an hl7 file. The file will look like this : > >MSH...OBR|0001||997841138254|..F > >I can use "OBR" as the starting point of the search and then use the "|" to >move to the begginning of

Re: Sed script

1999-10-22 Thread Eric G . Miller
Duh, even easier: $ cut --delimiter='|' --fields=N < infile > outfile where N = the fields you want. See man cut. -- ++ | Eric G. Milleregm2@jps.net | | GnuPG public key: http://www.jps.net/egm2/gpg.asc | +

Re: Sed script

1999-10-22 Thread Eric G . Miller
On Fri, Oct 22, 1999 at 04:28:29PM +1300, [EMAIL PROTECTED] wrote: > Hi > > Not debian related but i need help nonetheless. > > i need to extract the number 997841138254, or any other number from that > position, from an hl7 file. The file will look like this : > > MSH...OBR|0001||997841138