i`m testing and trying different things with shell scripts, mostly because i really don`t know anything of it.
yesterday i was trying some while loops, performing some huge additions; but i guess that i did something very bizarre almost stupid; because all of a sudden, the free space of my hd started to shrinck.
here is a screen dump of the script:

#!/bin/bash

COUNTER=200000
until [ $COUNTER -lt 100000 ]; do
echo -----------------------------> $COUNTER
let COUNTER-=1
done
[Thu Feb 1][23:19:25][root@sicanderbul][/var/tmp:]

>>setterm -dump

to all of you it must be obvious, but this `thing` created a lot of very small files with nothing but `--------` on it.
looking at that right now, i understand why that hapenned,ut what i don`t understand is why the files find their way to 2 diferent directories, /etc/rc.d and /var/tmp directories, why is that?