fork(1) download
  1. #!/bin/bash
  2.  
  3. s="[IP] 192.168.1.0"
  4. ip="192.168.15.24"
  5. sed "s/^\[IP] .*/[IP] $ip/" <<< "$s"
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
[IP] 192.168.15.24