Is there a command to output the owner of a file, and nothing else? I suppose I could use
ls and run it through
sed, but if there is a better way, I would definitely use it.
Thanks in advance.
I would use that function:
with the additional restriction for the hyphen not to be the first character.
I assumed no space was allowed. Just like anything else which is non-portable this can lead to unexpected results not only with my small function but with many Unix/Linux CLI utilities.