Re: cp output format
On Thu, 16 Jul 2015 11:51:26 -0500
David Wright <deblis@lionunicorn.co.uk> wrote:
> > > How do I get rid of the "~" so that the backups are file.1, file.2,
> > > etc.?
> > How about using the GNU rename in the dir holding your backup files:
> > $ rename "~" "" *~*
> Would that not be something more like
> rename 's/\.~([0-9]+)~$/.$1/' *[0-9]~
Which is why I stick to the GNU version of rename, and shun the perl version; much simpler syntax.
Cheers,
Ron.
--
Never have I encountered such corrupt and foul-minded perversity!
Have you ever considered a career in the church?!
-- Bishop of Bath and Wells
-- http://www.olgiati-in-paraguay.org --
Reply to: