If I want to print out the last line of each file I think the following command should do it: tail -1 * and if I want the first line of each file the following: head -1 * The head command works but the tail command does not! Is this a limitation of the tail command or is it a bug?