News for hackers. Stuff that matters.
Re:Find is a beautiful tool by tptacek on Sunday July 24, 2011 @02:05PM (#2799919)
Your argument kind of lost me at the point where you said "the awk is necessary to". You make a well-reasoned point, but really, isn't it a slippery slope? Lots and lots of Unix tools can be further broken down into smaller extant Unix tools.
Re:Find is a beautiful tool by ootachi on Sunday July 24, 2011 @02:23PM (#2799965)
Exactly. UI is important, and even if find can be written in terms of other tools, its superior UI justifies its existence. It's sort of like SQL: a declarative interface means that a system administrator doesn't have to think how to do something, but merely of what needs to be done in order to do it.

Minimalism at the expense of helping the user get the job done isn't the right tradeoff.

Re:Find is a beautiful tool by shabble on Sunday July 24, 2011 @07:52PM (#2800694)

  du -a | cut -f2
is a less sledgehammery approach than requiring awk. I don't recognise the OP's shell syntax (unless it's intended more as pseudo-code), but I think at least in bash, you'd have problems with embedded whitespace in filenames.

Find and Xargs have the option nul-separated output records specifically for this reason.

Re:Find is a beautiful tool by jff on Sunday July 24, 2011 @08:00PM (#2800705)
It's Plan 9's rc shell... I didn't use cut because I've got in the habit of using awk for quick shell tasks. I'll have to remember cut, though, since awk is definitely using a sledge to drive in a thumbtack.

Also in Plan 9, we typically don't have spaces in file names, but I think when we do they come out quoted... as far as I know there's no xargs.