On 12/07/2017 03:37 AM, 積丹尼 Dan Jacobson wrote:

> thus no way to process
> $ ls -l | cut ...
> and that one should use awk, etc. for that.

Let's step back a bit. We recommend that you NEVER parse ls output, as
it is inherently ambiguous and difficult to parse. MUCH better is to use
stat instead of ls, at which point you can get directly at the
information you want without having to post-process potentially
ambiguous output.  If anything, added documents should point people to
stat, not to bad ways of parsing ls.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to