Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[renommer des fichiers en ligne de commande] rename
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
idodesuke
Apprentice
Apprentice


Joined: 19 Dec 2005
Posts: 244
Location: France

PostPosted: Sun Dec 25, 2011 12:52 am    Post subject: [renommer des fichiers en ligne de commande] rename Reply with quote

Code:
--> Supprimer les espaces dans les noms de fichier (une commande qui ne fonctionne pas).
  $rename "s/ *//g" *.mp3
----------


Je ne comprends pas pourquoi cette commande ne fonctionne pas. Elle est cencée supprimer les espaces dans les noms de fichier.

Code:
ido@zalem rename 01:53
$la
total 0
-rw-r--r-- 1 ido ido 0 Dec 24 18:44 bla bou
-rw-r--r-- 1 ido ido 0 Dec 24 18:44 bla bou bou
-rw-r--r-- 1 ido ido 0 Dec 24 18:45 la badi bou bou

ido@zalem rename 01:53
$rename "s/ *//g" *

ido@zalem rename 01:53
$la
total 0
-rw-r--r-- 1 ido ido 0 Dec 24 18:44 bla bou
-rw-r--r-- 1 ido ido 0 Dec 24 18:44 bla bou bou
-rw-r--r-- 1 ido ido 0 Dec 24 18:45 la badi bou bou
Back to top
View user's profile Send private message
Magic Banana
Veteran
Veteran


Joined: 13 Dec 2005
Posts: 1906
Location: Belo Horizonte, Minas Gerais, Brasil

PostPosted: Sun Dec 25, 2011 1:03 pm    Post subject: Reply with quote

Enlève l'étoile :
Code:
rename 's/ //g' *
Back to top
View user's profile Send private message
Poussin
l33t
l33t


Joined: 08 Jun 2007
Posts: 659
Location: Liège

PostPosted: Sun Dec 25, 2011 8:36 pm    Post subject: Reply with quote

Question à 1000 points: Vous utilisez quoi comme paquet pour obtenir un rename "debian-like"? Parce que le rename de base de gentoo, il n'accepte pas les regexp. Personnellement, j'utilise sys-apps/rename (/usr/bin/renamexm), qui permet cette option (via le param -s), mais une version permettant les groupements serait intéressante
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun Dec 25, 2011 8:50 pm    Post subject: Reply with quote

dev-perl/rename

?
_________________
The End of the Internet!
Back to top
View user's profile Send private message
StinGer_Uesugi
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2010
Posts: 139
Location: Milky Way > Solar System > Earth > France > Paris > Home

PostPosted: Thu Dec 29, 2011 10:18 pm    Post subject: Reply with quote

mv + script en bash ? (Sisi, bash sait manipuler les chaînes de caractères ! :P )
_________________
Why drink and drive when you can smoke and fly ?
Back to top
View user's profile Send private message
geekounet
Bodhisattva
Bodhisattva


Joined: 11 Oct 2004
Posts: 3772
Location: Wellington, Aotearoa

PostPosted: Fri Dec 30, 2011 1:36 am    Post subject: Reply with quote

Ou zmv de zsh ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum