Skip to content

use tail -n for support on more distros#15

Merged
jonasbn merged 1 commit intojonasbn:masterfrom
johnbianchi:el-fix
Dec 4, 2023
Merged

use tail -n for support on more distros#15
jonasbn merged 1 commit intojonasbn:masterfrom
johnbianchi:el-fix

Conversation

@johnbianchi
Copy link
Contributor

tail -n +10 should work across most distros where tail +10 did not work for CentOS7 or RockyLinux8

@auto-assign auto-assign bot requested a review from jonasbn December 3, 2023 17:13
@jonasbn
Copy link
Owner

jonasbn commented Dec 3, 2023

hi @johnbianchi

Would tail -n 10 be a more generic compatible solution ?

@johnbianchi
Copy link
Contributor Author

johnbianchi commented Dec 3, 2023

I think that would be the same as plain -10
tail -10 == tail -n 10 which would be the last 10 lines
where -n +10 should be all lines after the first 10

@jonasbn
Copy link
Owner

jonasbn commented Dec 4, 2023

Hi @johnbianchi

I was considering what the POSIX standard says, but let go for your proposal for now.

Thanks for the contribution

@jonasbn jonasbn merged commit 6209f38 into jonasbn:master Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants