common Linux distros seem to have a -n option for testing a rename syntax but in Arch there is only -v according to man?
I want to rename using regexp syntax, should I use some alternatives than the default rename command?
vidir is clear and easy.
You're talking about perl-rename:
https://wiki.archlinux.org/index.php/Li … h_renamers
On Ubuntu, rename is an "alternative" that can be changed, the default is to use /usr/bin/prename, which as Procyon said is perl-rename. Arch and Scientific Linux use util-linux's rename.
You should use something else if you're hoping to make a distro-agnostic script.
Last edited by WorMzy (2013-03-21 11:39:03)
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD
Making lemonade from lemons since 2015.