Russ Cox personal blog

Glob Matching Can Be Simple and Fast Too

Here’s a straightforward benchmark. Time how long it takes to run ls ( a* ) n b in a directory with a single file named a 100 , compared to running ls | grep ( a.* ) n b . Superscripts denote string repetition and parentheses are for grouping only, so that when n is 3, we’re running ls a*a*a*b in a directory…
Points
333
HN comments
95
Submissions
1
Cited by
0 commenters

Software EngineeringTools & Productivity2017

On Hacker News

SubmittedTitle on HNPointsComments
Apr 24, 2017Glob Matching Can Be Simple and Fast Too by secure33395

More from Russ Cox

All 43 posts →

Related posts from the same era