LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find the space for files owned by specific users (https://www.linuxquestions.org/questions/linux-newbie-8/find-the-space-for-files-owned-by-specific-users-708533/)

Tinkster 03-04-2009 01:15 PM

Quote:

Originally Posted by jschiwal (Post 3464787)
Untested, but using -ls in find may be faster than an external command.

Wow - it is! Substantially. 2m7s with -exec ls as opposed to 8s
with -ls ...

Quote:

Originally Posted by jschiwal (Post 3464787)
Also, the format of the external ls command depends on $LS_OPTIONS, aliasing and sometimes the locale (for numbers). Another problem can turn up if in another part of the script, IFS is changed and ls is aliased. Aliased commands will fail if the space doesn't separate the command from the arguments. Using /bin/ls explicitly would prevent the last two potential problems.

I didn't do any testing, but the man-page suggests it uses
ls' -dils standard formatting for the output, which I'd
interpret to have the same dependence on locale?




Cheers,
Tink


All times are GMT -5. The time now is 02:07 AM.