Rclone moveto accidentally appended \r (carriage return, ^M)

So I just did:
mv “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD1.avi”* “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD1.avi”

And it seemed to work, but it took a while (so I’m not sure if it’s doing a server-side move, or a copy local then copy back).

But here’s an example:
ls -al /mnt/media/Movies/100\ Greatest\ Stand-Ups\ (2007)/

total 1793748
-rw-r–r-- 1 root root 367452160 Mar 6 08:14 100 Greatest Stand-Ups (2007) - CD1.avi
-rw-r–r-- 1 root root 367210496 Mar 6 08:14 100 Greatest Stand-Ups (2007) - CD2.avi?
-rw-r–r-- 1 root root 367280128 Mar 6 08:15 100 Greatest Stand-Ups (2007) - CD3.avi?
-rw-r–r-- 1 root root 367638528 Mar 6 08:15 100 Greatest Stand-Ups (2007) - CD4.avi?
-rw-r–r-- 1 root root 367216640 Mar 6 08:12 100 Greatest Stand-Ups (2007) - CD5.avi?

EDIT: I’m out of ‘new user replies’ on the first day LOL I guess I gotta wait 6 more hours. But a bit of food for thought:
Very interesting. I just did, for a quick experiment:

mv “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD2.avi”* “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD2.avi”
mv “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD3.avi”* “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD3.avi”
mv “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD4.avi”* “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD4.avi”
mv “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD5.avi”* “/mnt/media/Movies/100 Greatest Stand-Ups (2007)/100 Greatest Stand-Ups (2007) - CD5.avi”

And the first one took about 30 seconds, the rest were instant. So I’m guessing it’s just a caching thing that’s tripping it up originally?

It’s all server side but it may take a second or two to flush the cache and relist it back.

You should be able to do something like this:

perl-rename -v s'/avi.*$/avi/g' *
Greatest Stand-Ups (2007) - CD2.avi? -> Greatest Stand-Ups (2007) - CD2.avi
[felix@gemini out]$ ls -al
total 4
drwxr-xr-x  2 felix felix   49 Apr 11 13:10  .
drwx------ 17 felix felix 4096 Apr 11 11:50  ..
-rw-r--r--  1 felix felix    0 Apr 11 13:08 'Greatest Stand-Ups (2007) - CD2.avi'

Depending on your OS, it might be rename or perl-rename.

1 Like

You guys are amazing <3 All fixed up :slight_smile: What an incredible community.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.