1 |
> > find /patch -name something -exec -ls -lS + |
2 |
> > which runs ls -lS once against all the files that find finds (added as |
3 |
> > additional arguments), and therefore Sort works. |
4 |
> |
5 |
> Almost right. |
6 |
> |
7 |
> -exec + will not append all filenames found and run one command, |
8 |
> |
9 |
> it will append the maximum number of filenames that do not exceed the shell |
10 |
> command line limit, and do that enough times to get through all the |
11 |
> filenames. |
12 |
> |
13 |
|
14 |
Thanks for that Alan. I wasnt 100% sure I understood the man page, and that |
15 |
issue could definitely bite if you weren't aware! |