Fails from trusty onwards, all the way to disco. use this to test: printf %s '<https://api.github.com/repositories/3386088/issues?page=2>; rel="next", <https://api.github.com/repositories/3386088/issues?page=33>; rel="last"' | mawk ' BEGIN { RS=", "; FS="; "; OFS=": " } { sub(/^rel="/, "", $2); sub(/"$/, "", $2) sub(/^[[:space:]]*</, "", $1); sub(/>$/, "", $1) print "Link_" $2, $1 }'
Output should have no "<" char before the http link. ** Changed in: mawk (Ubuntu) Status: New => Triaged ** Changed in: mawk (Ubuntu) Importance: Undecided => Low -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to mawk in Ubuntu. https://bugs.launchpad.net/bugs/1805115 Title: problem with (ubuntu/cosmic)mawk /^[[:space:]]*</ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mawk/+bug/1805115/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs