#!/bin/bash
for ((i=0; i<=9999; i++)); do
  printf "%04d\n" "$i"
done