Rename *.jpeg.png to *.png in linux


# Change to the directory containing the image files
cd /path/jpg

# Loop through all the files with the .jpeg.png extension
for file in *jpeg.png; do
    # Remove the "jpeg" part from the file extension

    # Rename the file
    mv "$file" "$new_filename"


Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.