bash programming question

Konstantin Riabitsev yellowdog-general@lists.terrasoftsolutions.com
Mon Jan 26 11:37:00 2004


On 26.01.2004 13:33, Benjamin Warfield wrote:
> On 26 Jan 2004, Konstantin Riabitsev wrote:
> 
>>Much simpler than perl. :)
> 
> I believe those are fighting words, sir... :-)
> 
> find /etc -type f | xargs perl -MFile::Basename -ne '$hash++ if /^#/;if
> (eof){printf "%s:\t%d\t%d\n", basename($ARGV), $hash, $.;close ARGV; $hash=0}'

You're not helping your case. :)

However, this will quickly disintegrate into "why python is better 
than perl" discussion, and we know where THAT will go. :)

-- 
Konstantin ("Icon") Riabitsev
Duke Physics Systems Admin, RHCE
www.duke.edu/~icon/pubkey.asc