Created
December 21, 2016 17:04
-
-
Save diogopms/ad52dc944dfe07a89d51e23ee8eb0c20 to your computer and use it in GitHub Desktop.
Dummy data shell script
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
#Create dummy data | |
DIR=staging/recordings/XXXXXX | |
FOLDER=dumy_data | |
mkdir $FOLDER | |
cd $FOLDER; | |
mkdir -p $DIR; | |
for i in {1..100}; do dd if=/dev/urandom bs=1 count=1 of=$DIR/dummy-file$i.mp3; done | |
aws s3 sync . s3://bucket-from-sync --profile profile_name | |
rm -rf ../$FOLDER | |
echo "Done dummy data!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment