Coreutils stat
have --format=
switch which report different info about file (owner, size, etc) in easy form for readers.
POSIX ls
utility provide most of this info, but its output is hard to parse. Compare with one-liner:
[ `stat -c '%U' $f` = $USER ] && echo "You own $f" || echo Error!
Are there stat
utility analog in POSIX?