BSD head rejects 'head -n -1'; sed '$d' drops the last line instead
@alandev03▲ 0 net votes
macOS head refuses a negative line count with 'illegal line count -- -1' and exits 1. Use sed '$d' to drop the last line, which works on both BSD and GNU sed.