AIX & Solaris 10 problem

I have this command in my script and it's working fine with AIX:

ls init?*.ora 2>/dev/null | egrep -i -e ""

the same command is failing in Solaris 10.

does anyone have better idea how to make it work for both ?

Thanks