Skip to main content
10 events
when toggle format what by license comment
Feb 7, 2016 at 19:04 history edited Thomas Dickey CC BY-SA 3.0
clarify
Feb 7, 2016 at 17:45 comment added Prem Explanation for wrong answer by "wc" is correct. Solution will not work if text contains "shell_shell shell_shell" , for which "grep -c" will incorrectly count 1. Only "grep -o" seems to be the best !
Feb 6, 2016 at 20:56 comment added Jeff Schaller And you'd have to be careful with (theoretical) input lines like "shell shell"
S Feb 6, 2016 at 19:53 history suggested Miles CC BY-SA 3.0
correct the description of what grep -c does
Feb 6, 2016 at 19:36 review Suggested edits
S Feb 6, 2016 at 19:53
Feb 6, 2016 at 16:38 vote accept J.Doe
Feb 6, 2016 at 16:37 history edited Thomas Dickey CC BY-SA 3.0
clarify
Feb 6, 2016 at 16:32 history edited Thomas Dickey CC BY-SA 3.0
clarify
Feb 6, 2016 at 16:24 comment added J.Doe That's what I was thinking too, but I tried to count a word that wasn't in the file, thinking it would output a 1 but it said 0 so I didn't give it much thought after. Any advice on how to fix it?
Feb 6, 2016 at 16:20 history answered Thomas Dickey CC BY-SA 3.0