On Sat, Apr 17, 2010 at 12:02:40PM -0400, Daniel D Jones wrote:
> On Saturday 17 April 2010 00:09:28 Michael Elkins wrote:
> > On Fri, Apr 16, 2010 at 08:15:38PM -0400, Daniel D Jones wrote:
> > >What I'm trying to do is pretty simple. Getting it to work is turning out
> > > not to be. What I wan
* 2010-04-17 09:34 (-0700), Michael Elkins wrote:
> You can run into that sort of problem if your pattern to replace
> contains any forward slashes (/) in it. If you need to such an
> expansion, you probably want to do it in two passes, first doing a / to
> \/ substitution on your replacement str
Daniel D Jones wrote:
> What I want to do is call a bash script with a couple of arguments, and,
> within the script, call sed to use those args to replace two
> placeholders in a file:
> bashscript SUB1 SUB2
> This line inside bashscript doesn't work:
> sed -e 's/PLACEHOLDER1/$1/' -e 's/PLACEHO
On Sat, Apr 17, 2010 at 12:02:40PM -0400, Daniel D Jones wrote:
That was the first thing I tried and sed gave me an error:
sed: -e expression #1, char 18: unknown option to `s'
I just went back and tried it again and it worked, so I have no idea what I
did the first time that made it not work.
On Saturday 17 April 2010 00:09:28 Michael Elkins wrote:
> On Fri, Apr 16, 2010 at 08:15:38PM -0400, Daniel D Jones wrote:
> >What I'm trying to do is pretty simple. Getting it to work is turning out
> > not to be. What I want to do is call a bash script with a couple of
> > arguments, and, withi
On Fri, Apr 16, 2010 at 08:15:38PM -0400, Daniel D Jones wrote:
What I'm trying to do is pretty simple. Getting it to work is turning out not
to be. What I want to do is call a bash script with a couple of arguments,
and, within the script, call sed to use those args to replace two placeholders
What I'm trying to do is pretty simple. Getting it to work is turning out not
to be. What I want to do is call a bash script with a couple of arguments,
and, within the script, call sed to use those args to replace two placeholders
in a file:
bashscript SUB1 SUB2
This line inside bashscript
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
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 |
+
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
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||997841138254|..F
I can use "OBR" as the starting point of the search and then use t
11 matches
Mail list logo