in reply to (1) line of sh vs (~20) lines of perl ?
The interesting thing is that with Perl you created your own program to find the files for you. And it seems that you did it quickly, easily, and portably -- in just a few lines of code (even fewer for some of the respondents). And if you wanted to, you could extend the program to perform tests that aren't easy to do with "find" (e.g. "File owner matches a record in an Oracle database"). You could do that with sh, but would you want to?
So what are you missing? Some respect for what you just accomplished, and for the language that makes it possible.
buckaduck
|
---|