Re: sed -f Script Syntax

2009-12-17 Thread Martin McCormick
My main problem turned out to be that I had -E and -e confused. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group ___ freebsd-questions@freebsd.org mailing list http://lists.

Re: sed -f Script Syntax

2009-12-16 Thread Warren Block
On Wed, 16 Dec 2009, Martin McCormick wrote: Warren Block writes: sed(1) says it should be -E. Looks like it will only work on the whole script. Many thanks. I have had -e work many times But -e does not mean what you think here: -E Interpret regular expressions as extended (m

Re: sed -f Script Syntax

2009-12-16 Thread Martin McCormick
Warren Block writes: > sed(1) says it should be -E. Looks like it will only work on the whole > script. Many thanks. I have had -e work many times if you call sed from either the command line or a shell script as in sed -f somefile with somefile being 1 or more lines of sed commands. Whe

Re: sed -f Script Syntax

2009-12-16 Thread Warren Block
On Wed, 16 Dec 2009, Martin McCormick wrote: If you have a sed script that is executable as in the first line starts with #! /usr/bin/sed -f and the following lines are like: /this repetitive line/d /and another repetitive line to go/d This all works great. You just make the file executable an