Shell script to calculate the size of files

Dear all,
Please help me to write a script that can calculate the size of files.
For example: I have a directory which contain thousands of files. I need to know the size of files that their name begin with abc_123
Thank all!!

This may do what you want:

du -hc abc_123*

Thank Fmurphy so much, It's right but not enough. What I need is a script that will get total size.
For example: when I execute script, it will promote which files that I want to get by enter file name (abc_123*), then it will show the total size of these file.

so what are you waiting for ?

If you try to learn something from this forum, the rest code should be simple.

Do self-study first.

Isn't Fmurphy's line doing what you want?
When I run it I get what I think you're asking for.

du -h D*
492K    Desktop/Postmodernity_files
172K    Desktop/116-system-restore-disk_files
149M    Desktop
4.0K    Documents
244M    Downloads/Sarah McLachlan FLAC Pack - Discography [FLAC] [h33t] - Kitlope/Sarah McLachlan - Afterglow 2003
4.1G    Downloads/Deadwood Season 1
775M    Downloads/Decameron ~ Italian Classic ~ [RRG]{Brego}(desibbrg.com)
83G    Downloads

Edit: Or do you want for the sizes of each file to be totaled? Sed would probably do that.