fork download
  1. #!/bin/bash
  2. s='1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4'
  3. p='1 2 3 4'
  4. echo "$s"|sed "s/$p */&\n/g"
Success #stdin #stdout 0.03s 5312KB
stdin
Standard input is empty
stdout
1 2 3 4 
1 2 3 4 
1 2 3 4 
1 2 3 4