fork download
  1. #!/bin/bash
  2. s='test test test test'
  3. sed -E 's/\s+/|/;s/\s+/|/' <<< "$s"
Success #stdin #stdout 0.01s 5552KB
stdin
Standard input is empty
stdout
test|test|test test