mac_g
asked on
Shell Script to count different extention of each file
Our application we have lot of files.
each file has it's 3-different extention.
for example.....
testfile.ext1
testfile.ext2
testfile.ext2
report.ext1
report.ext2
I want to have shell script, which can test, how many extentions had for each file.
so that, I can easily track missting files.
In otherwords .... , from the above example of files which were listed, I want to have out put like below.
OutPut
==================
testfile ----- has count ---- 3
report ----- has count -----2
please advice
each file has it's 3-different extention.
for example.....
testfile.ext1
testfile.ext2
testfile.ext2
report.ext1
report.ext2
I want to have shell script, which can test, how many extentions had for each file.
so that, I can easily track missting files.
In otherwords .... , from the above example of files which were listed, I want to have out put like below.
OutPut
==================
testfile ----- has count ---- 3
report ----- has count -----2
please advice
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.