LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-30-2008, 05:23 PM   #1
alkos333
Member
 
Registered: Dec 2006
Posts: 271

Rep: Reputation: 31
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.
 
Old 12-30-2008, 05:34 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,258
Blog Entries: 24

Rep: Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193
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]

Last edited by astrogeek; 12-30-2008 at 05:42 PM.
 
Old 12-30-2008, 05:37 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.

Last edited by David the H.; 12-30-2008 at 05:38 PM.
 
Old 12-31-2008, 01:01 AM   #4
alkos333
Member
 
Registered: Dec 2006
Posts: 271

Original Poster
Rep: Reputation: 31
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
removing file with special characters rsashok Linux - General 4 02-09-2010 04:08 PM
BASH: Truncating file names with special character tboss888 Programming 2 12-18-2008 07:28 PM
Need to find if a matching file exist from a list of possible file names wit_273 Linux - General 5 10-25-2007 09:47 AM
HowTo: special chars (ŰűŐő) in file names ceetrom Linux - Newbie 1 11-03-2006 12:53 PM
Find and special file names CritterZ Linux - Newbie 2 12-23-2004 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration