>> it looks like echo'ed data is kept in bash memory > I think that's the way it should be, because sort needs the whole output of > the loop before it can begin sorting. > > i mean BASH takes memory, not sort. sort take 512MB RAM +temp files as i wanted through -S 512m