Skip to content

Conversation

@pontusk
Copy link

@pontusk pontusk commented Jul 16, 2025

The head command give the following error on macOS when called with -1: head: illegal line count -- -1. sed '$d' works for me with the GNU version of sed as well as the one on macOS and should accomplish the same goal of removing the last line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant