Last active
April 8, 2021 18:19
-
-
Save niole/772100ecc34ebd255b6e6889c0e8a6e9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
special_content=$5 | |
prefix=$4 | |
for ((i=0;i<$1;i++)) | |
do | |
fname=$(pwd)/$prefix-$i.txt | |
dd if=/dev/urandom of=$fname bs=$2 count=$3 | |
echo $special_content >> $fname | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment