NixUser

NixUser.com | Unix User | Linux User | NixUser

rename files with extensions .pdf to .PDF

 

How to rename pdf file extensions?

 

I had pdf files on my server with extension .pdf and I wanted to rename the extension to PDF.

Use the following one-liner to do this.

for f in *.pdf; do mv $f `basename $f .pdf`.PDF; done;

You are done.