A Finder alias is unlike the Unix variety, the Finder alias is actually a binary file which contains information concerning the file. One of the pieces of information is of course the location of the original but there is no way to resolve that location outside of the Finder.
Actually there is no Apple supplied way, there are programs out there that will do this but as the file format can change between versions of OS X and Finder there is no guarantee that what works at on point will continue to work.
Depending on what you are doing you might be abel to get the original file using a small Applescript run from within your shell script.
regards
<edit>
this is one of the sites that have a binary http://sebastien.kirche.free.fr/python_stuff/MacOS-aliases.txt and other useful information. Again as this stuff canned does change not sure how accurate it currently is.