I need to get the final URL after a page redirect preferably with curl or wget.
For example http://google.com may redirect to http://www.google.com
You could use grep. doesn't wget tell you where it's redirecting too? Just grep that out.