Re: [PLUG] Renaming files at the command line

2016-02-05 Thread Rich Shepard
On Fri, 5 Feb 2016, hewiak wrote: > Some file managers have a 'bulk rename' plugin, Thunar (standard for > XFCE desktop) is one There's also the rename tool. Read the man page, 'man rename'. Rich ___ PLUG mailing list PLUG@lists.pdxlinux.org http://

Re: [PLUG] Renaming files at the command line

2016-02-05 Thread hewiak
Some file managers have a 'bulk rename' plugin, Thunar (standard for XFCE desktop) is one On 02/03/2016 03:05 PM, Paul Heinlein wrote: > On Wed, 3 Feb 2016, John Jason Jordan wrote: > >> I frequently have a dozen or so screenshots taken with VLC. The files >> are in the format like this: >> >> vl

Re: [PLUG] Renaming files at the command line

2016-02-03 Thread Paul Heinlein
On Wed, 3 Feb 2016, John Jason Jordan wrote: > I frequently have a dozen or so screenshots taken with VLC. The files > are in the format like this: > > vlcsnap-2016-02-03-14h28m24s290 > > I wish to rename all the files in the folder that start with 'vlcsnap' > to #, where # is an incremental numbe

Re: [PLUG] Renaming files at the command line

2016-02-03 Thread Robert Citek
Hello John, Here is one way: ls | while read file ; do let inc++ ; mv ${file} Keyword$((${inc}-1)) done Naturally, add some sanity checks (e.g. file does not already exist, handle spaces). You can also add wildcards or pipe into grep to restrict the file list. Good luck and let us know how

[PLUG] Renaming files at the command line

2016-02-03 Thread John Jason Jordan
I frequently have a dozen or so screenshots taken with VLC. The files are in the format like this: vlcsnap-2016-02-03-14h28m24s290 I wish to rename all the files in the folder that start with 'vlcsnap' to #, where # is an incremental number starting with 0 for the first one and incrementing for e