LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Special File Names (https://www.linuxquestions.org/questions/slackware-14/special-file-names-693941/)

alkos333 12-30-2008 05:23 PM

Special File Names
 
Ok, how do I work with these dir names? http://alkos333.pastebin.com/d5f16aeb As you can see, I tried single quotes, but that didn't work.

astrogeek 12-30-2008 05:34 PM

Character classes?
 
You might try using a character class like...

cd [-]<tab complete>

I will avoid the obvious questions of who created those names, but can you just change them?

[EDIT]
See David's post below - he got it right!
[/EDIT]

David the H. 12-30-2008 05:37 PM

Code:

cd -- "--- Studio Albums ---"
Commands such as cd, cp, rm, and such think the initial dash is a command argument. You need to tell them that there are no more arguments by using a "--" double dash; and everything following that will be considered a file or other input option.

Of course, the best thing to do is to avoid creating filenames with such restricted characters in the first place. ;)

alkos333 12-31-2008 01:01 AM

They were created by a windows user, but thank you so much. I wasn't the one who created the names, but I forgive whoever came up with them :).


All times are GMT -5. The time now is 04:03 AM.