fork(1) download
  1. #!/bin/bash
  2. sed -n 's~.*<p>\([^<]*\)</p>.*~\1~p' <<< \
  3. "<!DOCTYPE html><html><body><h1>Hello!</h1><p>v1.0.4-b</p></body></html>"
  4.  
  5. sed -n -E 's~.*<p>([^<]*)</p>.*~\1~p' <<< \
  6. "<!DOCTYPE html><html><body><h1>Hello!</h1><p>v1.0.4-b</p></body></html>"
Success #stdin #stdout 0.01s 5472KB
stdin
Standard input is empty
stdout
v1.0.4-b
v1.0.4-b