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, 2242👍, 0💬
Popular Posts:
If we have multiple AFTER Triggers on table how can we define the sequence of the triggers ? If a ta...
What is the benefit of using an enum rather than a #define constant? The use of an enumeration const...
How can we format data inside DataGrid? Use the DataFormatString property.
What are some advantages and disadvantages of Java Sockets? Advantages of Java Sockets: Sockets are ...
How do we host a WCF service in IIS? Note: - The best to know how to host a WCF in IIS is by doing a...