4 ms·
> That's why we have both "ls" and "find" I don't get what you're trying to say. "ls" lists files in a specific path while "find" searches for objects in a fi
by geezerjay 10y ago
> That's why we have both "ls" and "find"
I don't get what you're trying to say.
"ls" lists files in a specific path while "find" searches for objects in a file system that match a specific query.
Are you sure you're not confused and somehow assuming that "does just one thing well" should mean "another tool must not accomplish anything that might be remotely achievable by misusing another tool"?
- lobster_johnson 10y agoBoth "ls" and "find" "list files in a specific path" and "search for objects that match a specific query". There's total overlap. The difference is that "ls" is a presentation-oriented tool, whereas "find" is geared towards pipelines.
- geezerjay 10y ago> Both "ls" and "find" "list files in a specific path" Only if you use "find" with a query that means "get me all files matching any and all criteria as long as they are in this specific path". That's a corner case, and a very silly one. > There's total overlap. A very silly and far-fetched one.