For loop over sequence of large numbers in Bash [duplicate]
问题 This question already has answers here : Bash command line and input limit (3 answers) Closed 2 years ago . In a Bash script I am using a simple for loop, that looks like: for i in $(seq 1 1 500); do echo $i done This for loop works fine. However, when I would like to use a sequence of larger numbers (e.g. 10^8 to 10^12), the loop won't seem to start. for i in $(seq 100000000 1 1000000000000); do echo $i done I cannot imagine, that these numbers are too large to handle. So my question: am I