Skip to content

Instantly share code, notes, and snippets.

@niole
Last active April 8, 2021 18:19
Show Gist options
  • Save niole/772100ecc34ebd255b6e6889c0e8a6e9 to your computer and use it in GitHub Desktop.
Save niole/772100ecc34ebd255b6e6889c0e8a6e9 to your computer and use it in GitHub Desktop.
#!/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