summaryrefslogtreecommitdiffstats
path: root/sanity/dev_sanity/counter.sh
blob: 37df8928ed6af75814d075b86fb42322439e2253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#set -x
#check for file named in 5-digit numbers and increment it - sanity_counter
cd /sanity/test/counter
ls [0-9][0-9][0-9][0-9][0-9] | while read fn;
do
id=$fn
new=`expr $id + 1`
rm $id
echo $id #sanity_id 
if [ $new -eq 100000 ]
	then
		touch 10000
		
	else
		touch $new
fi
done