fork download
  1. #!/bin/bash
  2. s="Line
  3. Consider this line, and the word side one sideline
  4. and more here"
  5. grep -E '([[:alpha:]]{4})(.*\1){2}' <<< "$s"
Success #stdin #stdout 0s 19632KB
stdin
Standard input is empty
stdout
Consider this line, and the word side one sideline