D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] change file name using ftp

 

Simon Robert wrote:
> Hi
> I need to do some photo file name changes on a server. The CMS has a
> facility which uses regular expresssions and I can't make any sense of
> it. I understand that there is some way of doing batch changes using
> ftp, but don't know how.
> 
> Does anyone know of an ftp app that does batch name changes?

Not I.

I think FTP only allows "rename a b", so anything that lets you create a
list of commands of that type will be equivalent to such a tool.

So "nlist" to list the files to a local file, $EDITOR to change that
list to "rename a b", and "ftp {options} < commandsfile"  should do the
trick.

Might be easier to try "curlftpfs" and tools like "mmv", but I'm not
braved that myself for anything important to me.



-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html