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


  • 19 Jan, 2012

    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 -wopendir(DIR, ".");@files = grep(/.html$/,readdir(DIR));closedir(DIR);foreach $file (@files) {print "$filen";}

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.