#!/bin/sh


# 不存在则创建目录
if [ ! -e "/home/data/ceshi" ]; then mkdir -p /home/data/ceshi; fi

while true
do

TIMEIDSTR=$(date "+%Y%m%d%H") && head -n 100 /dev/urandom >> /home/data/ceshi/ex-$TIMEIDSTR.dat
TIMEIDSTR=$(date "+%Y%m%d%H") && head -n 100 /dev/urandom >> /home/data/ceshi/ex-$TIMEIDSTR.dat
TIMEIDSTR=$(date "+%Y%m%d%H") && head -n 100 /dev/urandom >> /home/data/ceshi/ex-$TIMEIDSTR.dat
# echo "time"
sleep 1

done
