fork download
  1. #!/bin/bash
  2. s='<gateway ws="ws://1.1.1.23:8333" uid="123B0X3C"/>'
  3. NOD=$(sed -n 's/.*uid="\([^"]*\).*/\1/p' <<< "$s")
  4. echo "$NOD"
Success #stdin #stdout 0.01s 5360KB
stdin
Standard input is empty
stdout
123B0X3C