Skip to content

Instantly share code, notes, and snippets.

@devender-yadav
Last active July 26, 2018 11:40
Show Gist options
  • Save devender-yadav/e2ad3537f6cb8473fb796fac39413bc1 to your computer and use it in GitHub Desktop.
Save devender-yadav/e2ad3537f6cb8473fb796fac39413bc1 to your computer and use it in GitHub Desktop.
Generates CSV with 100 rows with a column having random number
entries=($(shuf -i 0-10000000000 -n 101)); 
for i in {1..100}; do a=( $(shuf -e $(seq 1 100)) ) echo "$i, sampledata-$i, ${entries[i]}"; done

Output:

1, sampledata-1, 2130817228
2, sampledata-2, 7428404717
3, sampledata-3, 8420093292
4, sampledata-4, 4015481845
5, sampledata-5, 5976105216
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment