sorry - didnt think it was an unrelated topic.
i had a loop which i was trying to speed up by not echo to file each time the loop ran so was trying to write to a /dev/shm as per previous posting.
regardless, i have recently been told the solution.
on each loop instead of echo $VAL > $FILE
Have a new variable updating dynamically
then at the end of the loop just echo $NEW
to do it with a line feed for each value do it
then echo it out with echo "$NEW"
Last edited by rapidgeo; 10-20-2010 at 11:44 PM.