fork(2) download
  1. #!/bin/bash
  2. s='<a href="perl.html">perl</a> <a href="http://z...content-available-to-author-only...e.net/out.html">http://z...content-available-to-author-only...e.net</a>
  3. <a href="zoiduser.html">zoiduser</a> <a href="perl.html">perl</a> <a href="http://z...content-available-to-author-only...e.net/sample.html">http://z...content-available-to-author-only...e.net</a>'
  4. sed -E 's/("(http|www|mailto)[^"]*")|\.html/\1/g' <<< "$s"
Success #stdin #stdout 0.01s 5436KB
stdin
Standard input is empty
stdout
<a href="perl">perl</a>     <a href="http://z...content-available-to-author-only...e.net/out.html">http://z...content-available-to-author-only...e.net</a>
<a href="zoiduser">zoiduser</a>    <a href="perl">perl</a>     <a href="http://z...content-available-to-author-only...e.net/sample.html">http://z...content-available-to-author-only...e.net</a>