Created
August 5, 2020 01:52
-
-
Save rg3915/94458b2b3eb1ec90e2c773e544cbaeee to your computer and use it in GitHub Desktop.
Generate random names and values with shell script - gpw random name gen name - gpw csv - random csv
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
# Generate random names and values with shell script. | |
echo "first_name,last_name,quantity" > /tmp/items.csv | |
for i in $(seq 1 20); do | |
first_name=$(gpw 1 7) | |
last_name=$(gpw 1 10) | |
quantity=$RANDOM | |
echo "$first_name,$last_name,$quantity" >> /tmp/items.csv | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment