Generating Huge String Buffer in Bash
The below bash script could be used to generate a file of a particular size (here 20MB) with some random strings. #!/bin/bash wanted_size=$((1024*1024*20)) #20MB File function gen_file() { file_size=$(( ((wanted_size/12)+1)*12…
Continue Reading
Generating Huge String Buffer in Bash