Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> In Unix you have to cut, awk and do all sorts of parsing to get some field out of `ls`.

I'm guessing you've mentioned using `ls` as a simple, first-thing-that-comes-to-mind example, which is cool. I just wanted to point out that if a person is piping ls's output, there are probably other, far better alternatives, such as (per the link below) `find` and globs:

https://unix.stackexchange.com/a/247973

That has been my experience, at least.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: