I'm developing maven snapshots. I pull down files using wget which is working fine, but it pulls down the files and creates a directory structure according to the URL.
EX:
http://example.net/nexus/content/repositories/repo/com/org/product/develop/component/buildNumber/file.txt
will create a directory structure beginning with example.net all the way to  buildnumber which will contain file.txt and file2.txt
I need to reach the end of the directory structure in order to rename the files within it; the problem is that the workspace is at the beginning of the folder structure. I'm assuming that I could pull apart the URL through a for loop and cd through the results in between the slashes. I'm very new to shell scripting so I'm looking for some direction  of how to structure my for loop and break apart this URL. 
 
     
    