script help list all files in folders and subfolders

2015-03-31 Thread George Milten
Hello friendly folks,

i would appreciate any help on the following:

say we have a folder with thousands of html files. Since the file browser
crashes, i am looking at making a script that would do the following:
Distribute all html files in folders, say 001, 002, 003, etc, sorted by the
html files' names. Then, i would like to create an index also an html file,
that would exist in each folder, containing links to all the folder's
stored html files. Also, if possible, a general index in the parent folder,
that would allow for a tree like showing the directories as links, and in a
tree like representation, below the links of the files contained in each
folder.

Thank you in advance

p.s. we use Perl 5.18,in an ubuntu 14.04 server


Re: script help list all files in folders and subfolders

2015-03-31 Thread Dr. Saiful Amin
Hi,

Wrote this almost a decade back for a similar need. I've removed some
irrelevant lines, but didn't test it. Obviously a quick-n-dirty script, but
I hope it works for you:)

Best regards,
Saiful Amin
+91-9343826438
Skype: saiful.amin

On Tue, Mar 31, 2015 at 1:29 PM, George Milten george.mil...@gmail.com
wrote:

 Hello friendly folks,

 i would appreciate any help on the following:

 say we have a folder with thousands of html files. Since the file browser
 crashes, i am looking at making a script that would do the following:
 Distribute all html files in folders, say 001, 002, 003, etc, sorted by the
 html files' names. Then, i would like to create an index also an html file,
 that would exist in each folder, containing links to all the folder's
 stored html files. Also, if possible, a general index in the parent folder,
 that would allow for a tree like showing the directories as links, and in a
 tree like representation, below the links of the files contained in each
 folder.

 Thank you in advance

 p.s. we use Perl 5.18,in an ubuntu 14.04 server



th.pl
Description: Binary data