Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How do I generate a list of all .html files in a directory?
How do I generate a list of all .html files in a directory?
✍: Guest
Here's a snippet of code that just prints a listing of every file in the current directory that ends with the extension .html:
#!/usr/bin/perl -w
opendir(DIR, ".");
@files = grep(/\.html$/,readdir(DIR));
closedir(DIR);
foreach $file (@files) {
print "$file\n";
}
2013-08-23, 2512👍, 0💬
Popular Posts:
Can you explain duplex contracts in WCF? In duplex contracts when client initiates an operation the ...
What will be printed as the result of the operation below: main() { char s1[]="Cisco"; char s2[]="sy...
What is the output of printf("%d")? 1. When we write printf("%d",x); this means compiler will print ...
Can you explain in brief how the ASP.NET authentication process works? ASP.NET does not run by itsel...
Can we have static indexer in C# ? No.