shell - Batch rename file using csv parameter -


i´d create script rename jpg based on csv file information. background is: medical equipment exports 3 files each exam: 1 csv, 1 jpg , 1 bmp. csv organized in rows example:

[ver],1-04-04 [pt_id],1234 [pt_nm],smith john [pt_sx],m [pt_ag], [pt_birth],1946,6,7 [st_dt],3/20/2013 [st_tm],3:26:26 [op_id], [op_nm],beth [mc_nm],em-3000 [mc_no],0 [fm_nu],1 [fm_if],specular,1-00-00 [files_n],4 [file],2013-03-19_15-28-52_679.em-3000.1.jpg,copy [file],2013-03-19_15-28-52_679.em-3000.2.bmp,endo [file],2013320trc.bin,trace [file],2013320ana.bin,analysis [mac_v],1.0g [specular_type],em-3000 [specular_analysis],em-3000_init [filter_size],small [pixel_size],1164 [rl],right [number],168 [density],2381 [avg],420 [sd],202 [cv],48 [max],1042 [min],114 [thk],563 [hg_rng],900,100 [hg_area],0,9,25,22,16,11,7,3,4,4 [hg_apex],0,1,21,47,24,5,2,0 [ans_rng],5,5,261,474 

as can see, csv show 2 other files(jpg , bmp). i´d rename jpg file (2013-03-19_15-28-52_679.em-3000.1.jpg) , add patient id (1234) @ end of jpg file (2013-03-19_15-28-52_679.em-3000.1-1234.jpg). problem how deal kind of csv file , how batch process each file created after each exam. in advance. tfrac


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -