You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
	
		
		
			
				
				
					
						
						
						
							|  | for i;
 | 
						
						
						
							|  | do 
 | 
						
						
						
							|  | 	real_ext=$(file $i | cut -d':' -f2 | cut -d' ' -f2)
 | 
						
						
						
							|  | 	##echo $ext
 | 
						
						
						
							|  | 	if [ $real_ext == "JPEG" ];
 | 
						
						
						
							|  | 	then
 | 
						
						
						
							|  | 		ext="jpg"
 | 
						
						
						
							|  | 	elif [ $real_ext == "TIFF" ];
 | 
						
						
						
							|  | 	then
 | 
						
						
						
							|  | 		ext="tif"
 | 
						
						
						
							|  | 	else
 | 
						
						
						
							|  | 		ext=$real_ext
 | 
						
						
						
							|  | 	fi
 | 
						
						
						
							|  | 	new_ext=${ext,,}
 | 
						
						
						
							|  | 	mv $i ${i%.*}.$new_ext	
 | 
						
						
						
							|  | done
 |