3 ms·
Hence Greg Wooledge's famous advice not to parse the output of ls. As catern points out, in a fully-fledged systems programming language, one can just directly
by JdeBP 8y ago
Hence Greg Wooledge's famous advice not to parse the output of ls. As catern points out, in a fully-fledged systems programming language, one can just directly call the library routines that read directories. And thereby obtain metadata without having to parse it from locale-dependent forms, too.
* https://mywiki.wooledge.org/ParsingLs https://mywiki.wooledge.org/ParsingLs
* https://unix.stackexchange.com/a/503711/5132 https://unix.stackexchange.com/a/503711/5132