Problem after using onedrived: Directories have quotes in name

13 views
Skip to first unread message

799

unread,
Jan 1, 2019, 3:26:14 PM1/1/19
to qubes-users
Hello,

I have run into a (likely) major problem trying to move data from the cloud back into Qubes.
I have setup some AppVMs to sync data from onedrive to my Qubes machine.
AppVM1 connects to onedrive via onedrived.
AppVM2 offers storage capacity via sshfs to AppVM1
I have now found out that all directories which have space in its filename have been saved 'FIRSTPART SECONDPART" on the drive.
Unfortunetly I am unable to cd to those directories in the AppVM2.

Do you have any idea how I can rename them?

Stupid me, I have deleted all data from onedrive (including) the trash as I thought data has been transmitted savely, which it did but I havend tried to cd into the directories which have a ' in its name :-/

- O

unman

unread,
Jan 1, 2019, 9:17:18 PM1/1/19
to qubes-users
You should be able to escape the space, or use quotes:
cd "FIRSTPART SECONDPART" or cd FIRSTPART\ SECONDPART

You can rename them like this:
rename 's/ /_/g' *

799

unread,
Jan 2, 2019, 1:11:06 PM1/2/19
to unman, qubes-users


On Wed, 2 Jan 2019 at 03:17, unman <un...@thirdeyesecurity.org> wrote:
[...]

You should be able to escape the space, or use quotes:
cd "FIRSTPART SECONDPART" or cd FIRSTPART\ SECONDPART
You can rename them like this:
rename 's/ /_/g' *

Thank you, I'm totally embarassed as the single quote character is (of course!) only viewable in bash/CLI and not part of the directory.

Example:
mkdir test\ directory
ls
will show: 'test directory'

Thanks for your help.

- O

Reply all
Reply to author
Forward
0 new messages