Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace spaces by underscores #30

Open
Stefomat opened this issue Dec 29, 2020 · 2 comments
Open

Replace spaces by underscores #30

Stefomat opened this issue Dec 29, 2020 · 2 comments
Labels
question Further information is requested

Comments

@Stefomat
Copy link
Contributor

I thought about writing custom systemd units and timers to execute your scripts in the background in regular intervals and also save the output to seperate logfiles (maybe useful for #27).
While tinkering with it, i bumped into the problem that most of the directorys have spaces in them.
I tried to escape them in several different ways:

  • Backslash (/mnt/nas/mirror/Archivist/Linux\ -\ OSX/Active\ Scripts/Channels)
  • systemd-escape (mnt-nas-mirror-Archivist-Linux\x20\x2d\x20OSX-Active\x20Scripts-Channels)
  • Mixture of both (/mnt/nas/mirror/Archivist/Linux\x20\x2d\x20OSX/Active\x20Scripts/Channels)
  • etc...

None of the above worked reliably. And allthough the reason i couldn'd get it to work might be that i haven't found the correct syntax, i want to toss in the idea to change all directorys to names without spaces. Might just be to replace spaces with underscores.

This might ease the work on future features, depending on what you have planned for these scripts? Do systemd units and timers sound good to you generally?

Greetings,
Stefomat

@TheFrenchGhosty
Copy link
Owner

Use quotes or apostrophe.

I do agree that spaces isn't ideal, but I never had an issue with them.

@TheFrenchGhosty TheFrenchGhosty added the question Further information is requested label Feb 3, 2021
@TheFrenchGhosty
Copy link
Owner

Re-opening, I changed my mind.

I don't know how to do it properly though. Spaces and capitalized letters should be gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants