Create string with incremental number


To create a string with an incrementing number up to 1000 using bash.

Run the below.

seq -s "$(echo -e '\ntest\n')" 1000 > output.txt
Advertisements