what left of the pattern

I have a script which loop through a directory then report any file matches the given pattern,
say, the pattern is "a2006", this file would be returned
a20061101.txt
I would like to know how can I get the remaining of the filename, so
a20061101txt - a2006 = 1101.txt
Can anybody help? Thank you so much!

Assuming that your filename is in the variable $filename (or something like that):

# filename=a20061101.txt
# echo ${filename#a2006}
1101.txt

You can use this in each iteration of your loop that works on the filenames.

Oh, and check the man page of ksh or bash to see how this particular thing comes about.

expr match "$filename" 'a2006\(.*\)'