Pario TechnoBlob

  • Home
  • About
  • Archives
Skip to content

Pario TechnoBlob

A chronological documentation test project, nothing serious, really!

  • Home
  • About
  • Archives

Rename file name suffix to uppercase or lowercase

Posted on 24. October 200826. October 2008 by Hans-Henry Jakobsen

This is a little oneliner to rename a files suffix from/to uppercase/lowercase.

Rename a jpg suffix to JPG in the current folder

# find -name "*.jpg" | while read a; do mv "$a" "${a%%.jpg}.JPG" ; done

The work JPG can be replaced by any other word :)

Share this:

  • Facebook
  • X
Posted in: Linux, ScriptingTagged: bash, lowercase, rename, uppercase

Post navigation

Previous: Howto copy a DVD-9 (dual-layer) movie in linux (fast)
Next: Network upgrade Ubuntu Server 8.04 to 8.10
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Search

Apache apt-get awk backup basename bash CentOS convert csv Database dd Debian esxi5 Etch EXIF Fedora find Gentoo grep howto html imagemagick iptables iso jhead JPG mount MySQL Nikon nmap perl PHP Postfix RedHat rename rhel5 sed sftp SMTP sort ssh Ubuntu VMware Wordpress Zimbra

  • Backup
  • Linux
  • Misc
  • Network
  • Photo etc
  • Scripting
  • Security
  • Virtualization
  • Web
  • Windows

Categories

  • Backup
  • Linux
  • Misc
  • Network
  • Photo etc
  • Scripting
  • Security
  • Virtualization
  • Web
  • Windows

Tags

Apache apt-get awk backup basename bash CentOS convert csv Database dd Debian esxi5 Etch EXIF Fedora find Gentoo grep howto html imagemagick iptables iso jhead JPG mount MySQL Nikon nmap perl PHP Postfix RedHat rename rhel5 sed sftp SMTP sort ssh Ubuntu VMware Wordpress Zimbra
Resume X WordPress Theme by Wp Theme Space