Posts tagged as:

random files

#!/bin/bash
# Shell script to generate random file method # 1
#
# This is a free shell script under GNU GPL version 2.0 or above
#
# Copyright (C) 2005 nixCraft
#
# Feedback/comment/suggestions : http://cyberciti.biz/fb/
 
echo "List of temporary files : "
for i in 1 2 3 4 5
do
FILE="/tmp/$(basename $0).$RANDOM.txt"
echo $FILE # show file [...]

{ 2 comments }