>> Nice one. Prior to your email, I always used the [embarrasingly complex]
>> method below:
>>
>> find . -type f | awk '{ system("rm -f \"" $0 "\""); }'
>
> It's not complex - there are just many ways to do it.
I agree there are many ways to do it.
I actually meant complex in a relative sense. I think that if typing that
[or similar] commands is something that gets done alot of the time, then
every second I free up or can free up will add up. Hate to be told I "could
have saved" X hours every month if I used a shorter, simpler[1] command.
Regards,
Gerald.
[1] Both CPU time and typing time. I don't know - it looks to me that there
are more keystrokes involved in typing out the awk based command and
probably more CPU time interpreting the awk before coming down to what the
command is intended to do. I wouldn't mind Peter's version, it saves me
(and probably my server) time.
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
The above comments and data are owned by whoever posted them (including
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------