#!/bin/bash for n in 'seq $2' do dd if=/dev/urandom of=$1 bs=8b conv=notrunc done