|
|
On Sun, 09 Mar 2008 04:55:23 -0500, Warp wrote:
> Jim Henderson <nos### [at] nospamcom> wrote:
>> On Sat, 08 Mar 2008 17:44:45 -0500, Warp wrote:
>
>> > Jim Henderson <nos### [at] nospamcom> wrote:
>> >> cd /tmp/stuff; find -type f | grep tmp$ | awk '{system("rm \"" $0
>> >> "\""))'
>> >
>> > Why does it need to be so complicated?
>> >
>> > find /tmp/stuff -name "*.tmp" -exec rm {} \;
>
>> Because there's a million ways to do it, and I haven't memorised all
>> the options for the find command.
>
>> In the time that it would take me to look up the options for find, I've
>> written the command-line out.
>
> But now you know. The -exec option of find is actually quite useful.
> Learn to use your tools. :)
Yes, now I know - and I never would claim to "know it all" (been burned
too many times with things I do know more than the average person about -
and then had something pointed out I didn't know <g>).
So I do appreciate you teaching me that one. New weapon for the
arsenal. :-)
Jim
Post a reply to this message
|
|