3 ms·
One can certainly do fine by grepping ls output in one-off instances, but I'd be really hesitant to put that in a script. For given paths, stat command essenti
by xelxebar 8y ago
One can certainly do fine by grepping ls output in one-off instances, but I'd be really hesitant to put that in a script.
For given paths, stat command essentially lets us directly access their inode structs, and invocations are nicely concise. The find util then lets us select files based on inode fields.
Both tools do take a bit of learning, but considerably less than grep and regexs. Anyway, I've personally found find and stat to be really nice and ergonomic after the initial learning period.