#!/bin/bash cd /var/www/html/leaflet/ruscomap/server/public/uploads for file in *; do if [ -f "$file" ]; then # mv "$file" "${file}.jpeg" # spacca tutte le immagini exiftool -all= * -overwrite_original fi done