简体   繁体   中英

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.

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

http://rename.sourceforge.net/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM