Reply To: Erlang 31st October 2004 at 06:09 #40086 Sunil KumarGuest If you r writing this program in C you can use recursive mathedology or in Unix go for shell programming.