I know that I can use the seq command to generate a sequence of numbers, such as:
seq 100 999
...and I know I can create a file with the addition of:
seq 100 999 > file.txt
...but what if I wanted to perform a calculation on each number, before writing it to a file?
I want to basically create a file of numbers, which contain the results of:
seq 100 999 x(times) date +%s > file.txt
I know this isn't the way to do it, but I'm curios about how it could be done.
Ultimately, the numbers that are created will be serial numbers, which can never (ever) be duplicated. The resulting numbers will actually need to be added to a MySQL database (not a file.txt file) and I will need to add more numbers to said MySQL database on a hourly/daily basis.
Any help/suggestions would be appreciated.