This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
techwiki:bash [2014/10/24 03:26] external edit
techwiki:bash [2016/10/20 01:17] (current)
Line 209: Line 209:
 </​code>​ </​code>​
 +  * get file list <code bash>​find *.jpg #find all jpg in fold</​code>​
 +  * rename find list <code bash>for i in `find *v10*.jpg`; do j=`echo $i | sed '​s/​v10/​v010/​g'​`;​ mv "​$i"​ "​$j";​ done 
 +# for each file, generate new name, replace old name with new name</​code>​
 ====== bash - utility ====== ====== bash - utility ======