Skip to content

Conversation

@edejong
Copy link

@edejong edejong commented Nov 7, 2025

Not all grep varieties support -c (for instance many people have grep aliased to batgrep), and the more idiomatic way to count lines is to use wc -l.

@edejong edejong changed the title Replace grep -c with more idiomatic wc -l and remove -n flag on echo. Replace grep -c with more idiomatic wc -l. Nov 7, 2025
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