Contents

Generate Random Text Data

Contents

If there is a need to quickly fill up some disk space with random text date it’s possible to do like this.

The following command can be used to generate 100 files of 40M each use this command:

shell

for f in {0..99}
do
    tr -dc "A-Za-z 0-9" < /dev/urandom | fold -w100|head -n 400000 > 40M-out-of-4g-data-$f.txt
done
MacOS Notice
On MacOS use gtr instead of tr.

The above mentioned command results into something like that:

Each file would have random alphanumeric text data, like this:

text

...
KvqRzDwGCR3uXPsxsZXI24goS7Focl9J1MbH04Wnyr8FYwLl5CverCNbpVs9QVcEMHTdSdw1i6vzBlH3L9ptO9bXv33 k1ueLURX
0oaE3Yj5NwEYqwJwTONjNVXTLgxXeKPwIDodFP0v DqK od 8w2NplizgxQMt6NZLRRFOwMphmuK0K8CNAJQ QXkkc4WM5Ez93w 
TW LaDPZJXd0mT14WfOLji2W4UtycErAL3hoh8V bOWdypYMgNtsVs4e6p2Lkv5JXk ZIykJpbFA2QKJ90JU9UuQGwaCQXHjACde
fT9rm3yteqffXHDA9r7N6AEM0XgxrQSyg7bA1Vb3PXVV8zW5iVDedIEl4GMJc9cwtDS9HXCRBr32P5EIph8YpVboobihojnL15YA
4K7gw6MTvZweAkE6aPFwzae7Wmh5CLEPhNKGbp2spK6sqJHYIrFq8NpeWr0f4VcvTrkqz1GfML2SnSj8CwDTldQzRnUz1MLePLrB
Poil8E1dMUXtafZgC1RF0hCpCeBbq6R2ASXKUNh0n8pAItJdYNlXfMzzaoUzK0u9dGfMAp0Sj5LtWe6PoK Dr EdHLf9S0FU rQ0
ICJdOjf5NEX2yLx0p82ACrMd4h0Xqh8HooDTI8pQ1rm7BnzGBZLXWbL8CwHDI0 95b6qbhuhQc7Sv6b2 FbbywnSKSLu1X0q h 9
i6UwapLhZ8ClT3H3imiHxUHsMzTtRBEWAi7TYB8HEqmH6VUHigeEXQLPMmx8ihsx8oG4QxfPbpjQ4KzDl4p94NnK7AZiy9FRgZZ1
jBt3IFlukJqz7HsSbmhTEiF6rjEqAUAjTKE15z1tQcaayqqbo mNvf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wAo A6UWgJp9NHqFTnZ1YuetyEKiXKz4hzDa kueRpRHmptd jFFvEcPcyYs7swaIMs2D
...
Second Head Post
This is a post from Second Head. So please, don’t expect too much.

Related Content