2 ms·
>What advantages does that have over 'ls' for that case? The gp was talking about issues with piping from "ls |" and your particular case of "find" being more
by jasode 5y ago
>What advantages does that have over 'ls' for that case?
The gp was talking about issues with piping from "ls |" and your particular case of "find" being more convoluted than "ls" isn't comparing that.
Example of the topic that gp was warning about:
http://mywiki.wooledge.org/ParsingLs http://mywiki.wooledge.org/ParsingLs
https://unix.stackexchange.com/questions/128985/why-not-parse-ls-and-what-to-do-instead/129120#129120 https://unix.stackexchange.com/questions/128985/why-not-pars...
[Also fyi... you may have meant "-maxdepth" instead of "-depth" in your example.]