ls -l | awk '{print $3}'
尝试使用stat(1)
stat(1)
[cnicutar@fresh ~]$ stat -c %U file.c cnicutar
有很多可用的格式序列:用户ID、总大小等。
stat -f“%Su” file.c
find
find -maxdepth 1 -name 'file.c' -printf '%u\n'
stat -f“%Su” file.c
。 - lhf