This discussion is archived
566 Views 3 Replies Latest reply: Dec 2, 2007 5:26 PM by nerowolfe
Currently Being ModeratedDec 2, 2007 4:43 PM (in response to Yong Taek Hwang)You need to escape the spaces with a leading backslash or the shell will give you unexpected results.
For example to cd to "folder with spaces"
cd folder\ with\ spaces/
Also, the bash tab-auto-complete is your friend. Type a character or two and then tab, you'll get the idea when you see the result. If there is more than one possible completion, then hit tab a couple of times quickly and you'll get a list of all of the options.
hthMBP 15, Mac OS X (10.5.1), 10.4.10 Backup System on FW HD
Currently Being ModeratedDec 2, 2007 4:58 PM (in response to brainslice)thanks
great help !!!MacBook, Mac OS X (10.4.11)
Currently Being ModeratedDec 2, 2007 5:26 PM (in response to brainslice)As an aside, parenthesis also work when spaces are present.
I do it using the wildcard *
In your example, cd *fold (of course it has to be a unique folder/filename)
That comes from years of Linux training and a strong dislike of typing.Dual G5, MacBookPro 15, MacBookPro3,1 17 Core2Duo, Mac OS X (10.5.1), Vista Ultimate 64-bit on MBP/17"