Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.
Date: Thu, 01 Dec 2011 10:43:33
Message-Id: 4ED759FC.6060801@gmail.com
In Reply to: Re: [gentoo-user] Changing names of LOTS of files, adding to them actually. by Stroller
1 Stroller wrote:
2 > On 1 December 2011, at 01:49, Dale wrote:
3 >> ...
4 >> I ran into a problem. I been downloading a lot of TV shows. I forgot to put a sort of important part in the names. This is what I have with the full path:
5 >>
6 >> /data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4
7 >>
8 >> This is what I need it to be:
9 >>
10 >> /data/Movies/TV_Series/Person of Interest/Person of Interest - Season 1, Episode 1 - Pilot.mp4
11 >>
12 >> Basically, I need to add the name of the show to the name of the file. They will all be added to the front of the names. They also almost all contain spaces, which means some fancy footwork with the \.
13 > I see you've renamed your files already, but as a reference answer:
14 >
15 > `rename` from sys-apps/util-linux is ok.
16 >
17 > sys-apps/renameutils should be installed on every system, IMO, and aliased thus in your .bashrc:
18 >
19 > alias qmv="qmv -f do"
20 > alias qcp="qcp -f do"
21 >
22 > Set $EDITOR to vi, and renaming TV shows becomes quick and easy.
23 >
24 > Stroller.
25 >
26 >
27 >
28
29 vi? O_O Would nano not work? I got stuck in vi once. I felt like I
30 was in Hotel California. :/ Got that tune in your head now huh? lol
31
32 I'm going to see what else is available too. I bet since Krename is
33 installed, rename is installed too. I'm sure Krename is just a GUI
34 front end to something already on here.
35
36 Oh, if I learn vi, I'd learn sed, gawk and those other weird named
37 commands too. I'd be a official something. I'm already called a geek
38 and a nerd. ;-) Gentoo you know?
39
40 Dale
41
42 :-) :-)
43
44 --
45 I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Replies

Subject Author
Re: [gentoo-user] Changing names of LOTS of files, adding to them actually. Frank Steinmetzger <Warp_7@×××.de>
Re: [gentoo-user] Changing names of LOTS of files, adding to them actually. Stroller <stroller@××××××××××××××××××.uk>