Results 1 to 3 of 3

Thread: [Bash] Renamming files

  1. #1

    Default [Bash] Renamming files

    Hi

    I want to write a little bash script to rename some files like this :

    input :
    exemple - thing - REMOVETAG.ext
    another - file - REMOVETAG.ext
    output :
    exemple - thing.ext
    another - file.ext

    So I want to reneme all files without the " - REMOVETAG" (if they have).

    I know there is awk, cut, sed but I don't know hot to use them, so if you could help and teach
    If you find this post helpful, please show your appreciation and click on the star below. Thanks!

  2. #2

    Default Re: [Bash] Renamming files

    super-simple:

    Code:
    rename ' - REMOVETAG' '' *REMOVETAG*

    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  3. #3

    Default Re : [Bash] Renamming files

    Thanks, I didn't know that this command was so usefull!
    If you find this post helpful, please show your appreciation and click on the star below. Thanks!

Tags for this Thread

Posting Permissions

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