* [gentoo-user] A directory name with spaces in it?
@ 2006-07-21 18:34 Alexander Fortwinder
2006-07-21 18:49 ` TR3M3R3
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Alexander Fortwinder @ 2006-07-21 18:34 UTC (permalink / raw
To: gentoo-user
Hi everyone,
I'm downloading a torrent file which created a directory name with spaces, so when I try to access it in bash,
it is reported as not being found. How do I deal with it? For example, /home/This is a some directory
Thanks for suggestions.
Alex
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] A directory name with spaces in it?
2006-07-21 18:34 [gentoo-user] A directory name with spaces in it? Alexander Fortwinder
@ 2006-07-21 18:49 ` TR3M3R3
2006-07-21 18:49 ` Mike Williams
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: TR3M3R3 @ 2006-07-21 18:49 UTC (permalink / raw
To: gentoo-user
type the first letter and press TAB key...
;)
Alexander Fortwinder escribió:
> Hi everyone,
>
> I'm downloading a torrent file which created a directory name with spaces, so when I try to access it in bash,
> it is reported as not being found. How do I deal with it? For example, /home/This is a some directory
> Thanks for suggestions.
> Alex
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] A directory name with spaces in it?
2006-07-21 18:34 [gentoo-user] A directory name with spaces in it? Alexander Fortwinder
2006-07-21 18:49 ` TR3M3R3
@ 2006-07-21 18:49 ` Mike Williams
2006-07-21 19:16 ` Alan
2006-07-21 20:11 ` Alexander Skwar
2006-07-21 18:58 ` PaulNM
` (2 subsequent siblings)
4 siblings, 2 replies; 8+ messages in thread
From: Mike Williams @ 2006-07-21 18:49 UTC (permalink / raw
To: gentoo-user
On Friday 21 July 2006 19:34, Alexander Fortwinder wrote:
> I'm downloading a torrent file which created a directory name with spaces,
> so when I try to access it in bash, it is reported as not being found. How
> do I deal with it? For example, /home/This is a some directory Thanks
> for suggestions.
/home/This\ \ is\ a\ \ \ some\ directory
"/home/This is a some directory"
/home/"This is a some directory"
/home/This<tab>
--
Mike Williams
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] A directory name with spaces in it?
2006-07-21 18:34 [gentoo-user] A directory name with spaces in it? Alexander Fortwinder
2006-07-21 18:49 ` TR3M3R3
2006-07-21 18:49 ` Mike Williams
@ 2006-07-21 18:58 ` PaulNM
[not found] ` <200607212107.14944.shrdlu@unlimitedmail.org>
2006-07-21 20:09 ` Alexander Skwar
4 siblings, 0 replies; 8+ messages in thread
From: PaulNM @ 2006-07-21 18:58 UTC (permalink / raw
To: gentoo-user
Alexander Fortwinder wrote:
> Hi everyone,
>
> I'm downloading a torrent file which created a directory name with spaces, so when I try to access it in bash,
> it is reported as not being found. How do I deal with it? For example, /home/This is a some directory
> Thanks for suggestions.
> Alex
>
You need to escape the spaces:
cd /home/This\ \ is\ a\ \ \ some\ directory
Put a \ in front of any special characters. Between This and is there
are 2 spaces, so it's \space\space.
Auto complete should help out here, just hit tab after the first few
letters. If more than one file/directory matches, it'll show you all the
matching examples.
PaulNM
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] A directory name with spaces in it?
[not found] ` <200607212107.14944.shrdlu@unlimitedmail.org>
@ 2006-07-21 19:05 ` Justin R Findlay
0 siblings, 0 replies; 8+ messages in thread
From: Justin R Findlay @ 2006-07-21 19:05 UTC (permalink / raw
To: gentoo-user
On Fri, Jul 21, 2006 at 09:07:14PM +0200, Etaoin Shrdlu wrote:
> Escape the spaces with backslashes, or put the name inside single quotes
> or double quotes. Bash auto-completion escapes the spaces for you.
Let's everyone take a moment to reflect upon how much bash means to us.
<PAUSE>
Thank you. Now returning to your previously scheduled program already
in progress ...
Justin
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] A directory name with spaces in it?
2006-07-21 18:49 ` Mike Williams
@ 2006-07-21 19:16 ` Alan
2006-07-21 20:11 ` Alexander Skwar
1 sibling, 0 replies; 8+ messages in thread
From: Alan @ 2006-07-21 19:16 UTC (permalink / raw
To: gentoo-user
On Fri, Jul 21, 2006 at 07:49:59PM +0100, Mike Williams wrote:
> On Friday 21 July 2006 19:34, Alexander Fortwinder wrote:
> > I'm downloading a torrent file which created a directory name with spaces,
> > so when I try to access it in bash, it is reported as not being found. How
> > do I deal with it? For example, /home/This ?is a ? some directory Thanks
> > for suggestions.
>
> /home/This\ \ is\ a\ \ \ some\ directory
> "/home/This is a some directory"
> /home/"This is a some directory"
> /home/This<tab>
mf /home/This* /home/newdirectoryname/
(assuming that there is only one dir starting with "This")
--
Alan <alan@ufies.org> - http://arcterex.net
--------------------------------------------------------------------
"Backups are for people who don't pray." -- big Mike
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] A directory name with spaces in it?
2006-07-21 18:34 [gentoo-user] A directory name with spaces in it? Alexander Fortwinder
` (3 preceding siblings ...)
[not found] ` <200607212107.14944.shrdlu@unlimitedmail.org>
@ 2006-07-21 20:09 ` Alexander Skwar
4 siblings, 0 replies; 8+ messages in thread
From: Alexander Skwar @ 2006-07-21 20:09 UTC (permalink / raw
To: gentoo-user
Alexander Fortwinder schrieb:
> Hi everyone,
>
> I'm downloading a torrent file which created a directory name with spaces, so when I try to access it in bash,
> it is reported as not being found.
What did you do? What was the *EXACT* command?
> How do I deal with it?
Correctly :)
> For example, /home/This is a some directory
cd /home/This\ \ is\ a\ \ \ some\ directory
As I close to always use tab expansion, I'd type
cd /home/This<tab>and get what I wrote above.
Alexander Skwar
--
On a normal ascii line, the only safe condition to detect is a 'BREAK'
- everything else having been assigned functions by Gnu EMACS.
-- Tarl Neustaedter
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] A directory name with spaces in it?
2006-07-21 18:49 ` Mike Williams
2006-07-21 19:16 ` Alan
@ 2006-07-21 20:11 ` Alexander Skwar
1 sibling, 0 replies; 8+ messages in thread
From: Alexander Skwar @ 2006-07-21 20:11 UTC (permalink / raw
To: gentoo-user
Mike Williams schrieb:
> /home/"This is a some directory"
Now, if you're trying to get funny, this would also work:
/home"/This "\ is' 'a' 'some\ director"y"
;)
Alexander Skwar
--
How long does it take a DEC field service engineer to change a lightbulb?
It depends on how many bad ones he brought with him.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-07-21 20:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-21 18:34 [gentoo-user] A directory name with spaces in it? Alexander Fortwinder
2006-07-21 18:49 ` TR3M3R3
2006-07-21 18:49 ` Mike Williams
2006-07-21 19:16 ` Alan
2006-07-21 20:11 ` Alexander Skwar
2006-07-21 18:58 ` PaulNM
[not found] ` <200607212107.14944.shrdlu@unlimitedmail.org>
2006-07-21 19:05 ` Justin R Findlay
2006-07-21 20:09 ` Alexander Skwar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox