fork download
  1. #!/bin/bash
  2. file="Youtube Movie.part01.rar"
  3. regex='part(0*[2-9][0-9]*|0*1[0-9]+)\.rar'
  4. if ! [[ $file =~ $regex ]]
  5. then
  6. echo "anything"
  7. fi
Success #stdin #stdout 0s 19656KB
stdin
Standard input is empty
stdout
anything