Last active
July 8, 2020 20:44
-
-
Save vdim/c3a1f23a2785e4e6801f8a7ad1c402fb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Amount of records. | |
count=$1 | |
if test $# -eq 0; then | |
count=60; | |
fi | |
# First unix time of records. | |
timestamp=1594240218 | |
for i in `seq 1 $count`; do | |
data=`shuf -r -i 10-100 -n 100000 | tr '\n' ' '` | |
echo $timestamp $data | |
timestamp="$(echo $timestamp + 1 | bc)" | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment