fork(1) download
  1. #!/bin/bash
  2. s='Q4HXD/7100525/+wg4C54V2I4mh4Xh
  3. aaaa/123/422444qjem,,qewriiafa
  4. !#@AVADFQWERASDFASDFQervzxcilh'
  5. grep -P '^(?=.*/[0-9]{4,}/).*([0-9])(.*\1){3}' <<< "$s"
  6. echo "--------"
  7. echo "$s" | grep -E '/[0-9]{4,}/' | grep -E '([0-9])(.*\1){3}'
Success #stdin #stdout 0s 4448KB
stdin
Standard input is empty
stdout
Q4HXD/7100525/+wg4C54V2I4mh4Xh
--------
Q4HXD/7100525/+wg4C54V2I4mh4Xh