Wednesday, August 20, 2008

Parse Download Director dlmgr.pro

If you use the IBM Passport Advantage or PartnerWorld portal to download software, you no doubt want to have the filenames renamed to something more meaningful than the software part number. This script will rename files based on the parsed info in the dlmgr.pro file. Example

jdsmedia@deantp1 /cygdrive/c/DownloadDirector $ ls -1 

C1FT9EN.zip 

C1FU3EN.tar 

C1FU4EN.tar 

C473DIE.exe 

dlmgr.pro 

itmpatchagents.zip 

itmsup.zip 

jdsmedia@deantp1 /cygdrive/c/DownloadDirector $ /usr/local/bin/parse_ddpro.pl 

PWD is /cygdrive/c/DownloadDirector 

mv C1FU4EN.tar ITM_Version_6_1_Vol_6_Fixpack_7_Linux_Intel_C1FU4EN.tar 

mv C1FT9EN.zip ITM_Version_6_1_Vol_1_Fixpack_7_Windows_Plat_C1FT9EN.zip 

mv C1FU3EN.tar ITM_Version_6_1_Vol_7_Fixpack_7_Linux_Intel_P_C1FU3EN.tar


 

DOWNLOAD: parse_ddpro

 
 

Trackback: http://www.jdsmedia.net/miscellaneous/parse-download-director-dlmgrpro-2

No comments:

About Me

My photo
Been in the IT world since `92 (man, has it been over 16yrs already) and taken a real shine to scripting and web interfaces in 96 when someone showed me their HTML profile in Netscape. Most of my career has been involved with automation and sysadmin scripts in distributed environments. In 1998 became certifiable (sic) Tivoli Enterprise consultant; which focused on all aspects of my skill set, and kept me damned busy... still. My Tivoli consulting came through a couple of strong outfits { Crestone and Gulf Breeze } but am now working for myself as JDS Media. Not really a media company, but I liked the domain years ago.