On Thu, 6 Oct 2022 17:19:09 +0200, Ramon Fischer wrote:

> And if you like Bash brace expansions; this one is sometimes quicker, 
> than tab-completion and removing characters:
> 
>      $ mv file.txt{,.bak}
>      file.txt.bak
>      $ mv file.txt,{bak,img}
>      file.txt.img
>      $ mv file.txt{img,}
>      file.txt

$ mv -b oldname newname

If newname exists, it is renamed with  a ~ extension.

> 
> -Ramon
> 
> On 06/10/2022 14:45, Neil Bothwick wrote:
> >> This is probably a case of Dolphin not being a good tool, unless it
> >> has a built-in command-line?
> >> $ mv newfile oldfile
> >> will overwrite the old file in place with the new file with the name
> >> of the old file.  
> > And tab-completion makes this a lot quicker than renaming files in a
> > file manager.
> >  
> 




-- 
Neil Bothwick

I'll never forget the 1st time I ran Windows, but I'm trying...

Attachment: pgp3rAgl4u77o.pgp
Description: OpenPGP digital signature

Reply via email to