in reply to Re^4: removing files with perl based on age and name
in thread removing files with perl based on age and name
Just in case someone might understand it false, I am using almost daily Unix powerful tools (sort, find, cut, etc., sometimes even awk and sed, and many others), and yes, they are very powerful. For example, one thing I am doing regularly is to use the Unix sort utility to sort (usually with relatively complicated sort, field by field, for which the Unix sort is very good) a very large file and then piping the output to a Perl program that will remove duplicates or do all kinds of other interesting things. In some cases, I am also using the Unix shell to create parallel Perl processes in a very easy way. But shelling out of Perl to just stat a file last modification date, to remove a file or changing permissions is just plain stupid non-sense when the language can do it so easily.
To gurpreetsingh13: I did not downvote your original post with the script, because, despite what I said earlier about its shortcomings, I still think it can be considered as a valuable and useful contribution (even though I fully agree with Hippo's comments on it), but, yes, I did downvote your last answer, which is just pathetically wrong, as beautifully demonstrated by roboticus. Having done that, I can see that I am far from being the only one: you've made it to the top worst node of the day (and probably soon top worst node of the week, it is probably just a matter of time for update).
No personal hostility, I think your argument is just plain wrong.
|
|---|