[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Renombrar varios ficheros



El Jueves 02 Febrero 2006 15:45, Iñaki escribió:
> El Jueves, 2 de Febrero de 2006 18:59, Jaume Martin Claramonte escribió:
> > El jue, 02-02-2006 a las 17:10 +0100, Iñaki escribió:
> > > El Jueves, 2 de Febrero de 2006 16:47, Francisco J. Bejarano escribió:
> > > > El Jueves, 2 de Febrero de 2006 16:34, Gorka escribió:
> > > > >   Hola a todos.
> > > > > Tengo como 6000 ficheros que he de renombrar cada día.
> > > > > fijovariable.r.txt a fijo0variable.r.txt
> > > > > Todo es fijo menos la cadena variable.
> > > > > ¿Cómo puedo insertar ese 0 de forma sencilla a los 6000 ficheros?
> > > > > Gracias.
> > > >
> > > > Con un script, con el comando mv y un bucle sobre todos los archivos
> > > > del directorio (y subdirectorios si se aplica) y man. ;-)
> > >
> > > Mejor que "mv" yo usaría "rename":
> > >   apt-get install rename
> > >   man rename
> > >
> > > O sea, un script en bash que haga un bucle recorriendo cada archivo del
> > > directorio (tirado) y a cada uno le aplique el comando "rename"
> > > adecuadamente.
> >
> > Que diferencia hay entre el comando rename y mv,
> > ya se que mv mueve archivos haciendo mv nombre otronombre
> > pero que deferencia hay?
>
> Pues que rename permite expresiones regulares para modificar el nombre de
> un fichero.
>
> Haz un "man rename" y enseguida verás la diferencia.


nombre krename
sumario Powerful batch renamer for KDE 3.x
versión 3.0.9-2
estado install ok installed
grupo kde
tamaño 1168000
descripción This package contains a very powerful batch file renamer for KDE3 
which can rename a list of files based on a set of expressions. It can 
copy/move the files to another directory or simply rename the input files.
arquitectura i386
-----------------------------------------------------------------------------------------------------

nombre mrename
sumario A tool for easy and automatic renaming of many files
versión 1.2-9
grupo utils
tamaño 68000
tamaño archivo 5734
descripción Mass Rename is a simple pair of shell scripts which make it easier 
to move, rename, or copy multiple files at once. It is intended mainly as an 
automatic and simple way to rename multiple files with a customizable prefix 
and a progressive number. It is also possible to modify the rename format 
simply by editing one of the scripts. It is easy, complete, and efficient, 
and was written only in sh code.
arquitectura all
------------------------------------------------------------------------------------------------------

nombre renameutils
sumario Programs to make file renaming easier
versión 0.8.1-2
grupo utils
tamaño 208000
tamaño archivo 80668
descripción The file renaming utilities (renameutils for short) are a set of 
programs designed to make renaming of files faster and less cumbersome. . 
This package consists of five programs - qmv, imv, icp, qcp and deurlname: . 
qmv ("quick move") allows file names to be edited in a text editor. The names 
of all files in a directory are written to a text file, which is then edited 
by the user. The text file is read and parsed, and the changes are applied to 
the files. . imv ("interactive move"), is trivial but useful when you are too 
lazy to type (or even complete) the name of the file to rename twice. It 
allows a file name to be edited in the terminal using the GNU Readline 
library. . icp and qcp are similar to imv and qmv but for copying using 
"cp". . deurlname removes URL encoded characters (such as %20 representing 
space) from file names. Some programs such as w3m tend to keep those 
characters encoded in saved files.
arquitectura i386



Reply to: