Search code examples
linuxfishbatch-rename

Batch Rename in Fish shell


I get 15 or 20 files every week with random names that include several symbols such as !,' etc. Plus there is space. So I need to replace space with _, and any other symbols to nothing before I can pass them to another script. I use thunar for the job now, but I'll very much like to automate it in the script. I'm using fish shell.


Solution

  • Okay, I find an old tool called rename. It did the trick without using sed or any complex command.

    http://rename.sourceforge.net/