#!/bin/bash random_content () { < /dev/urandom tr -dc A-Za-z0-9_ | head -c300 } for I in {1..10} do touch file$I.txt random_content > file$I.png done