QUOTE(pabloalcantara @ Jan 12 2012, 09:17 PM)

It search for ISOs in the given folder, then create a TU folder inside each ISO folder, verify if the update already exists to not download again.
My next step is delete an older TU if a new one is find.
Help is apreciated.
Try this one:
http://pastebin.com/G6s7yDQk (edit: Argh messed the url, fixed now)
- It will now handle any number of arguments and you can also give it a directory, which it will recursively scan for .iso files.
- It will now create the title update folder in the same path where the .iso file is.
- It won't download again if the update has been already downloaded.
I commented the script a bit to help you understand what's going on.
I left deleting the old title updates when new update is found as an excercise for you :-)
You may also want to add a shorter timeout for the wgets (add --timeout=10 to the wget command to get a 10 seconds timeout)
Here's the script in action:
CODE
% titleupdate.sh /scratch/xbox360
=== Searching for Media ID 4A2B74A4 for file /scratch/xbox360/Batman_Arkham_Asylum/baa.iso
===
=== Searching for Media ID 6473199D for file /scratch/xbox360/Fable_2/fable2.iso
=== 6473199D Fable 2 Eng TU 4 Region Free 20. Dec 09 19:26 3.97 MB CDN | Direct | (2127)
=== Downloading /scratch/xbox360/Fable_2/Fable 2 Eng TU 4 from http://xbuc.net.nyud.net/uploads/261/TU_16L61VH_0000004000000.0000000000101
--2012-01-12 22:41:57-- http://xbuc.net.nyud.net/uploads/261/TU_16L61VH_0000004000000.0000000000101
Resolving xbuc.net.nyud.net (xbuc.net.nyud.net)... 138.15.10.56
Connecting to xbuc.net.nyud.net (xbuc.net.nyud.net)|138.15.10.56|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.
--2012-01-12 22:42:09-- (try: 2) http://xbuc.net.nyud.net/uploads/261/TU_16L61VH_0000004000000.0000000000101
Connecting to xbuc.net.nyud.net (xbuc.net.nyud.net)|138.15.10.56|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.
--2012-01-12 22:42:21-- (try: 3) http://xbuc.net.nyud.net/uploads/261/TU_16L61VH_0000004000000.0000000000101
Connecting to xbuc.net.nyud.net (xbuc.net.nyud.net)|138.15.10.56|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Giving up.
=== Downloading /scratch/xbox360/Fable_2/Fable 2 Eng TU 4 from http://xbuc.net/uploads/261/T
U_16L61VH_0000004000000.0000000000101
--2012-01-12 22:42:31-- http://xbuc.net/uploads/261/TU_16L61VH_0000004000000.0000000000101
Resolving xbuc.net (xbuc.net)... 174.132.162.131
Connecting to xbuc.net (xbuc.net)|174.132.162.131|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.xbuc.net/uploads/261/TU_16L61VH_0000004000000.0000000000101 [following]
--2012-01-12 22:42:31-- http://www.xbuc.net/uploads/261/TU_16L61VH_0000004000000.0000000000101
Resolving www.xbuc.net (www.xbuc.net)... 174.132.162.131
Reusing existing connection to xbuc.net:80.
HTTP request sent, awaiting response... 200 OK
Length: 4161536 (4.0M) [application/octet-stream]
Saving to: `TU_16L61VH_0000004000000.0000000000101'
100%[==========================================================================>] 4,161,536 794K/s in 6.4s
2012-01-12 22:42:38 (636 KB/s) - `TU_16L61VH_0000004000000.0000000000101' saved [4161536/4161536]
=== Searching for Media ID 66420EB4 for file /scratch/xbox360/Fallout_3/fallout3.iso
=== 66420EB4 Fallout 3 TU 1 PAL NTSC/U 25. Mar 11 03:36 2 MB CDN | Direct | (491)
=== Downloading /scratch/xbox360/Fallout_3/Fallout 3 TU 1 from http://xbuc.net.nyud.net/uploads/968/TU_11561UL_000004C000000.0000000000093
--2012-01-12 22:42:40-- http://xbuc.net.nyud.net/uploads/968/TU_11561UL_000004C000000.0000000000093
Resolving xbuc.net.nyud.net (xbuc.net.nyud.net)... 131.179.150.72, 195.113.161.83, 88.255.65.219
Connecting to xbuc.net.nyud.net (xbuc.net.nyud.net)|131.179.150.72|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.xbuc.net.nyud.net/uploads/968/TU_11561UL_000004C000000.0000000000093 [following]
--2012-01-12 22:42:43-- http://www.xbuc.net.nyud.net/uploads/968/TU_11561UL_000004C000000.0000000000093
Resolving www.xbuc.net.nyud.net (www.xbuc.net.nyud.net)... 88.255.65.219, 131.179.150.72, 195.113.161.83
Connecting to www.xbuc.net.nyud.net (www.xbuc.net.nyud.net)|88.255.65.219|:80... failed: Connection timed out.
Connecting to www.xbuc.net.nyud.net (www.xbuc.net.nyud.net)|131.179.150.72|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2101248 (2.0M) [application/octet-stream]
Saving to: `TU_11561UL_000004C000000.0000000000093'
100%[==========================================================================>] 2,101,248 449K/s in 5.5s
=== Searching for Media ID 694292BA for file /scratch/xbox360/Guitar_Hero_5/gh5.iso
===
=== Searching for Media ID 3DF550B0 for file /scratch/xbox360/Guitar_Hero_Smash_Hits/ghsh.iso
===
=== Searching for Media ID 6C6A8EF1 for file /scratch/xbox360/Guitar_Hero_World_Tour/ghwt.iso
=== 6C6A8EF1 Guitar Hero World Tour TU 1 Region Free 08. Dec 09 12:55 1.35 MB CDN | Direct | (1804)
=== Downloading /scratch/xbox360/Guitar_Hero_World_Tour/Guitar Hero World Tour TU 1 from http://xbuc.net.nyud.net/uploads/53/TU_10LC20Q_0000008000000.0000000000082
--2012-01-12 22:43:03-- http://xbuc.net.nyud.net/uploads/53/TU_10LC20Q_0000008000000.0000000000082
Resolving xbuc.net.nyud.net (xbuc.net.nyud.net)... 195.113.161.83, 88.255.65.219, 131.179.150.72
Connecting to xbuc.net.nyud.net (xbuc.net.nyud.net)|195.113.161.83|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.xbuc.net.nyud.net/uploads/53/TU_10LC20Q_0000008000000.0000000000082 [following]
--2012-01-12 22:43:03-- http://www.xbuc.net.nyud.net/uploads/53/TU_10LC20Q_0000008000000.0000000000082
Resolving www.xbuc.net.nyud.net (www.xbuc.net.nyud.net)... 131.179.150.72, 195.113.161.83, 88.255.65.219
Connecting to www.xbuc.net.nyud.net (www.xbuc.net.nyud.net)|131.179.150.72|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1413120 (1.3M) [application/octet-stream]
Saving to: `TU_10LC20Q_0000008000000.0000000000082'
100%[==========================================================================>] 1,413,120 470K/s in 2.9s
2012-01-12 22:43:11 (470 KB/s) - `TU_10LC20Q_0000008000000.0000000000082' saved [1413120/1413120]
=== Searching for Media ID 456C0258 for file /scratch/xbox360/Left_4_Dead/l4d.iso
=== 456C0258 Left 4 Dead TU 6 Region Free 12. Dec 10 23:05 3.11 MB CDN | Direct | (616)
=== Downloading /scratch/xbox360/Left_4_Dead/Left 4 Dead TU 6 from http://xbuc.net.nyud.net/uploads/870/TU_12K221G_0000004000000.00000000001G1
--2012-01-12 22:43:12-- http://xbuc.net.nyud.net/uploads/870/TU_12K221G_0000004000000.00000000001G1
Resolving xbuc.net.nyud.net (xbuc.net.nyud.net)... 138.15.10.56
Connecting to xbuc.net.nyud.net (xbuc.net.nyud.net)|138.15.10.56|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.
2012-01-12 22:42:59 (370 KB/s) - `TU_11561UL_000004C000000.0000000000093' saved [2101248/2101248]
--2012-01-12 22:43:23-- (try: 2) http://xbuc.net.nyud.net/uploads/870/TU_12K221G_0000004000000.00000000001G1
Connecting to xbuc.net.nyud.net (xbuc.net.nyud.net)|138.15.10.56|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Retrying.
--2012-01-12 22:43:35-- (try: 3) http://xbuc.net.nyud.net/uploads/870/TU_12K221G_0000004000000.00000000001G1
Connecting to xbuc.net.nyud.net (xbuc.net.nyud.net)|138.15.10.56|:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out) in headers.
Giving up.
=== Downloading /scratch/xbox360/Left_4_Dead/Left 4 Dead TU 6 from http://xbuc.net/uploads/870/TU_12K221G_0000004000000.00000000001G1
--2012-01-12 22:43:46-- http://xbuc.net/uploads/870/TU_12K221G_0000004000000.00000000001G1
Resolving xbuc.net (xbuc.net)... 174.132.162.131
Connecting to xbuc.net (xbuc.net)|174.132.162.131|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.xbuc.net/uploads/870/TU_12K221G_0000004000000.00000000001G1 [following]
--2012-01-12 22:43:46-- http://www.xbuc.net/uploads/870/TU_12K221G_0000004000000.00000000001G1
Resolving www.xbuc.net (www.xbuc.net)... 174.132.162.131
Reusing existing connection to xbuc.net:80.
HTTP request sent, awaiting response... 200 OK
Length: 3256320 (3.1M) [application/octet-stream]
Saving to: `TU_12K221G_0000004000000.00000000001G1'
100%[==========================================================================>] 3,256,320 752K/s in 5.3s
2012-01-12 22:43:52 (604 KB/s) - `TU_12K221G_0000004000000.00000000001G1' saved [3256320/3256320]