Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ludvikjr opened this issue Mar 23, 2023 · 0 comments
Open

Comments

@ludvikjr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant