read -r FIRSTLINE < filename. Same result as the other answers but faster because it doesn't spawn any process, as "read" is a built-in bash command.
確定! 回上一頁