Skip to content

Running desed without -E option on macos 13 generates an unknown error #26

@ludvikjr

Description

@ludvikjr

Running this sed code through desed without -E option on macos 13 generates an error attached below.

#!/usr/bin/sed -nE -f

/<p>Platnost/ {
	s_[^0-9]*([^,]*)[^0-9]*([0-9]*).*_\1 #\2_
	s/([0-9]+.) ([0-9]+.) ([0-9]+)/\1\2\3/p
}

/<tr/ {
    :a
    n
    s/<(td|th)[^>]*>([^<]*)<\/(td|th)>/\2/
    H
    ta
}

$ {
    g
    s/<\/tr>//g
    s/\n[ \t]*/\|/g
    s/$/\n/
    s/\|\|/\n/g
    s/^\|//g
    s/\|\n$/\n/g
    p
}

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions