Hello monks!
Here's the picture: I have a very large file with a lot of file names in it. Like this:
cln2-test.pl
labsearch.txt
listprojects.pl
server1-test.pl
(17).SWW
(18).SWW
(19).SWW
(2).SWW
(20).SWW
(21).SWW
(22).SWW
(23).SWW
(24).SWW
(25).SWW
(26).SWW
(3).SWW
(4).SWW
(5).SWW
(6).SWW
(7).SWW
(8).SWW
(9).SWW
2689previous.gif
2690next.gif
a
a.out
bbb
book_details
c1
c2
c3
charcut
check_dupvar
club
common
cpgm_check
ctest
ctest1
ctest2
activepj.pl
autopro.exe
AutoPro.pl
getbylabel.exe
getbylabel.pl
getbylabel2.exe
getbylabel2.pl
.
.
.
.
.
.
..
As you can see, most of the files end with extensions. What i want is to produce a report in this way:
Extension: No. of files
.txt 3
.pl 10
.exe 17
. 4
. .
.
The file extensions are not pre-determined. They are updated in the log as they are read from the file.
Thanks for your time
we're born with our eyes closed and our mouths wide open, and we spend our entire life trying to rectify that mistake of nature. - anonymous.