fork(14) download
  1. #!/bin/bash
  2. s="WHITE-TAILED TROPIC-BIRD _Phaëthon lepturus_ (Hawaiian name—koae)"
  3. str=$(sed -n 's/.*\(([^()]*)\).*/\1/p' <<< "$s");
  4. echo "$str"
Success #stdin #stdout 0s 4500KB
stdin
Standard input is empty
stdout
(Hawaiian name—koae)