Yeah, grail.. u r correct..
Sybase database is also not very reliable in joins for such values(Like Space)
So, I wanted my script, should work on file level instead of database level..but in file level also I'm facing this issue..
I was happy with my Linux box and lots of options for grep and was able to do many stuffs..
However this unix box(and Sybase) is not allowing me to free up..