3 ms·
look does a binary search and only works on sorted files, while grep '^string' works on any text file but would be slower.
by ryan-c 11y ago
look does a binary search and only works on sorted files, while grep '^string' works on any text file but would be slower.