1 |
On Thu, 6 Oct 2022 17:19:09 +0200, Ramon Fischer wrote: |
2 |
|
3 |
> And if you like Bash brace expansions; this one is sometimes quicker, |
4 |
> than tab-completion and removing characters: |
5 |
> |
6 |
> $ mv file.txt{,.bak} |
7 |
> file.txt.bak |
8 |
> $ mv file.txt,{bak,img} |
9 |
> file.txt.img |
10 |
> $ mv file.txt{img,} |
11 |
> file.txt |
12 |
|
13 |
$ mv -b oldname newname |
14 |
|
15 |
If newname exists, it is renamed with a ~ extension. |
16 |
|
17 |
> |
18 |
> -Ramon |
19 |
> |
20 |
> On 06/10/2022 14:45, Neil Bothwick wrote: |
21 |
> >> This is probably a case of Dolphin not being a good tool, unless it |
22 |
> >> has a built-in command-line? |
23 |
> >> $ mv newfile oldfile |
24 |
> >> will overwrite the old file in place with the new file with the name |
25 |
> >> of the old file. |
26 |
> > And tab-completion makes this a lot quicker than renaming files in a |
27 |
> > file manager. |
28 |
> > |
29 |
> |
30 |
|
31 |
|
32 |
|
33 |
|
34 |
-- |
35 |
Neil Bothwick |
36 |
|
37 |
I'll never forget the 1st time I ran Windows, but I'm trying... |