Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
cbsmith
· 5y ago · 0 comments
Is it really so awful to do "grep -o '\b\w+%'"? It still won't handle extra space padding at the end of the line, but it's still a lot less ugly than assuming the word after the first space is a last name.
Comments
[–]
RasmusLarsen
5y ago
In the context of trying to teach people basics, yes, I would argue that is quite awful.
[–]
cbsmith
OP
5y ago
Weird, not sure why it did % instead of $ there.