bash programming question

Benjamin Warfield yellowdog-general@lists.terrasoftsolutions.com
Mon Jan 26 11:33:01 2004


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}'

	--Ben

-- 
2B or not 2B, that is FF