On Mon, 2005-09-19 at 02:53, webmaster wrote:
> I've got a sed file (this.sed) that converts a text file to a man
> page and it works on a debian system but it generates an error in Mac
> OSX 10.3.x and 10.4.x.
>
> The reported error is:
>
> daleenterprise:/temp root# sed -f this.sed this.txt | tee temp.txt
> sed: 4: this.sed: invalid command code ^
> daleenterprise:/temp root#
>
> Line 4 is the line immediately following the line containing
> 'DESCRIPTION'.
>
> I've examined the man pages for sed and looked at the examples the
> line looks OK, anyone know I should change this too?
>
>
> Here's the file content:
> ____________________________________
>
> 1s/^\(.*\)$/\.TH \1/
> /NAME/s/^\(.*\)$/\.SH \1/
> /DESCRIPTION/s/^\(.*\)$/\.SH \1/
I don't see what it's matching here
v
> /\/s/^\(.*\)$/\.SH \1/
^
> /AUTHOR/s/^\(.*\)$/\.SH \1/
>
> s/this/\\fIthis\\fR/g
> /11111/,/22222/{
> a\
> .br
> }
> /EXAMPLEMARK/,/EXAMPLEMARK/{
> a\
> .br
> }
> /EXAMPLEMARK/s///
> /11111/s///
> /22222/s///
>
> /SEE ALSO/,/AUTHOR/{
> /^[a-z]/s/^\(.*\)$/\.BR \1/
> s/(\([1-9]\))/ "(\1), "/g
> s/(C++)/ "(C++), "/g
> s/(C++)$/ "(C++)"/
> }
> /AUTHOR/{
> i\
>
> a\
> Dale Walsh
> }
> ____________________________________
>
> -- Dale
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macos-x-server mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/macos-x-server/email@hidden
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden
This email sent to email@hidden