I need to have a text file containing 10 million sequential numbers. This is the script I use :
#!/bin/bash
for i in {20000000..29999999};
do
echo $i >> numbers;
done
On a P4 3GHz machine, how much time is needed to generate such huge numbers ?
The answer is 53 minutes.
No comments:
Post a Comment