↓ Skip to Main Content

Blackcat Software

Multiplatform Software, Hardware, Administration

Main Navigation

  • Home
  • What We Offer
  • Products We Support
  • Contact Us

Tag: prefix

Rename Jpgs in a Directory with a Prefix and Sequential Numbers

By Dave Posted on 01-Jul-2014 Posted in Linux

$ cd pictureDirectory $ find -name ‘*.jpg’ | gawk ‘BEGIN{ a=1 }{ printf “mv %s MY_FILE_PREFIX_%02d.jpg\n”, $0, a++ }’ | bash Adapted from Pero’s post at Stackoverflow.

Tagged with: bash, fast, JPEG, Linux, prefix, script, sequential number, unix
© 2021 Blackcat Software | Powered by Responsive Theme

‹ › ×

    ‹ › ×