fork download
  1. #!/bin/bash
  2. A="/CLIENT_IPADDR:23.4.28.2 /CLIENT_LOGIN:xdfmb1d /MXJ_C"
  3. B=$(echo "$A" | awk 'match($0,/\/CLIENT_LOGIN:[^[:space:]]+/){print substr($0,RSTART+14,RLENGTH-14)}')
  4. echo "$B"
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
xdfmb1d