program that imitates unix tail command