Random bash scripting

Had to do this for work, couldn’t easily find a snippet on the web so here is one in case for some odd reason anyone needs it, this will create a file (t.t) that will have a list of numbers from 1000 -> 2000 adjust numbers as needed 🙂

#!/bin/sh
i=1000
while [ $i -lt 2001 ]
do
echo $i >> t.t
i=$[$i+1]
done

Leave a Reply