Results 1 to 2 of 2

Thread: How to bulk rename files using command line?

  1. #1
    Join Date
    Aug 2016
    Beans
    15

    How to bulk rename files using command line?

    this has been asked i guess but my question is a bit different , i just want to add suppose 'by walter' as suffix or Prefix of files ,

  2. #2
    Join Date
    Aug 2013
    Beans
    75
    Distro
    Lubuntu

    Re: How to bulk rename files using command line?

    find is your friend. use the -exec option and you'll be good. man is your friend.

    Sorry, find will need some tweaking to work. Better use a for loop:

    Code:
    cd /home/mydir; for i in *; do mv ${i} prefix_${i}_suffix; done
    Last edited by aromo2; September 2nd, 2016 at 02:39 PM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •