fork(4) download
  1. #!/bin/bash
  2. v='{k1:v1,k2:v2,k3:v3,k4:v4,k5:v5,k6:v6,k7:v7,k8:v8};'
  3. echo "${v}" | sed -r 's/.{10}[^,]*,/&\n/g'
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
{k1:v1,k2:v2,
k3:v3,k4:v4,
k5:v5,k6:v6,
k7:v7,k8:v8};