• Curriculum Vitae (CV)
• Major web solutions
• Web design projects
• Software solutions
• C# (Microsoft .NET)
• JAVA
• Dynamic HTML
• PHP & MySQL
• ASP.NET - C# & VB.NET
• Perl & CGI
• C | C++
• Vector Markup Language
• SMIL
• Assembler
• Databases
• Wap Development
• Web site promotion
• Web Marketing
|
|
How to count the sum in bytes of all the files contained in a folder?
(Perl free example written by Anton Zamov.) |
How to count the sum in bytes of all the files contained in a folder?
my($totalBytes) = 0;
while(<STDIN>)
{
my($line) = $_;
chomp($line);
if($line !~ /<DIR>/) #directories don't count
{
#*** only lines with dates at position 28 ****
if ($line =~ /.{12}((d| |,){14}) dd-dd-dd/)
{
my($bytes) = $1;
$bytes =~ s/,//; #substitute nothing for comma -- delete commas
$totalBytes += $bytes;
}
}
}
print "$totalBytes bytes in directory.n";
|
|
|
Jobs Portal, poweful jobs board software
PHP Mall, multi vendors mall website software
Car Portal, php script for auto classifieds websites
NetArt Media, software products and services
Real Estate Portal, web software for real estate portals
Blog System, multi user blog hosting script
PHP Store, powerful e-commerce system written in PHP
|