grep -E "[40-199]{2,3} "
ruby -ne 'print if (40..199) === $_.to_i'
Citace od: ruby kdy 28. 07. 2018, 11:21:15Kód [Vybrat] Rozbalitruby -ne 'print if (40..199) === $_.to_i'
$ ruby -e 'printf "(%s)",(40..399).map(&:to_s).join("|")'
Citace od: Jirsákův interpreter kdy 20. 08. 2018, 15:37:49co dělá tenhle výron?
seq 500 | ruby -ne 'print if (40..199) === $_.to_i'
Citace od: Jirsákův interpreter kdy 20. 08. 2018, 15:37:49Není lepšíKód [Vybrat] Rozbalit$ ruby -e 'printf "(%s)",(40..399).map(&:to_s).join("|")'