Skip to content

Instantly share code, notes, and snippets.

@vdim
Last active July 8, 2020 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdim/c3a1f23a2785e4e6801f8a7ad1c402fb to your computer and use it in GitHub Desktop.
Save vdim/c3a1f23a2785e4e6801f8a7ad1c402fb to your computer and use it in GitHub Desktop.
#!/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