Home > Mobile >  Generate 6 digit number from 000001 to 999999 in Linux
Generate 6 digit number from 000001 to 999999 in Linux

Time:11-18

Is there any command in Linux where I could generate the value 000001 to 999999 and store into a txt file? I know there is a seq command but it creates the value 1 to 999999 instead of 000001 to 999999.

CodePudding user response:

This should work:

seq -f "g" 999999
  • Related