Skip to main content
7 events
when toggle format what by license comment
Jun 15, 2018 at 7:12 comment added schily Using xargs with find is an artefact from the 1980s. David Korn introduced execplus in 1989 for SVr4. The only find implementations without -ls are on AIX and HP-UX. Find -ls has been introduced in 1988 with SunOS/4.0 this is 30 years ago now...
Jun 15, 2018 at 2:33 comment added muru If your find has -print0, it probably has -ls as well.
Jun 14, 2018 at 23:39 vote accept Tim
Jun 14, 2018 at 23:24 comment added NickD Maybe - I generally prefer xargs because I find the find -exec syntax yucky. I expanded the answer to include a solution that uses xargs.
Jun 14, 2018 at 23:22 history edited NickD CC BY-SA 4.0
added 252 characters in body
Jun 14, 2018 at 22:46 comment added Tim Thanks. My filenames contain whitespaces. Would find . -type f -exec ls -lh {} \; | sort -h -k5 | tail -n 3 be better?
Jun 14, 2018 at 22:34 history answered NickD CC BY-SA 4.0