Dealing with "&"

Joined
Jul 11, 2014
Messages
296
Reaction score
5
Points
18
Your Mac's Specs
A1286 MBP5,3 running 10.9.5, iphone6, Mac mini1,1 A1176 120/2gb
I am trying to change directories to"Brooks & Dunn"
I know that I can use the " " for the spaces, but how do you deal with the "&"?
cd Brooks" "&" "Dunn <CR> Doesn't work.
Ideas?
If it matters, this is on Snow Leopard on a mac mini
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
558
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
You'll have to clarify things. If you're changing directories, simply double click the folder that you want to open. Are you scripting something?
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
14,513
Reaction score
1,075
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio, macOS Monterrey, 32 GB
Code:
cd Brooks\ \&\ Dunn
or
Code:
cd "Brooks & Dunn"
The whole thing has to be in quotes..
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top