for n in {0..100500} do touch "filename-$n" done
from pathlib import Pathworkdir = Path('.')for i in range(10): (workdir / f'filename-{i}').touch()