Announcement

Collapse
No announcement yet.

Change file extension from higher case to lower case

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change file extension from higher case to lower case

    Changing file extension from higher case to lower case with a perl script

    If any file is called many times and you want to change its extension from higher case to lower case, it will be time consuming if you edit every file which is having reference to that file.

    You can use following script to change the .JEPG extension for a file to the .jpeg wherever the file has been called.

    The script you can run is as given below will change example.JPEG to example.jpeg in every file, wherever it has been called.
    ================================================
    perl -pi -e "s|(example.)JPEG|\$1jpeg|g" *
    ================================================

    You can use dots as a repeater in above script, if you have more that one file to be change the extension for.
Working...
X