script to get lines from a file, using head / tail