You are not logged in.

#1 2013-03-21 11:19:36

dabbi2000
Member
From: Reykjavik, Iceland
Registered: 2011-09-28
Posts: 119
Website

Rename with test option

Hi,
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?

Offline

#2 2013-03-21 11:28:05

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Rename with test option

vidir is clear and easy.
You're talking about perl-rename:
https://wiki.archlinux.org/index.php/Li … h_renamers

Offline

#3 2013-03-21 11:36:41

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 5,365

Re: Rename with test option

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)


Sakura:-
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

Offline

Board footer

Powered by FluxBB