|
|
Super Stupid question
|
|
|
|
Senior User
Join Date: Aug 2000
Location: Buenos Aires
Status:
Offline
|
|
This is REALLY stupid. I warned you.
i have been playing around with the Terminal.app an I don't find a way to replace the spaces of the directory names and/or files or applications as well. If I have an app located at, say... ~/applications/The Application.app. How do I manage to invoke that app to open? I have tried "The_Application.app", "The-Application.app" and "TheApplication.app" without results. I could not found any solution by searching the man.
Man, that are the disadvantages of learning without studying...
Thanks to all (who answer).
Nai no Kami
|
Y no entienden nada... ¡y cómo se divierten!...
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status:
Offline
|
|
If you are going to be using the shell much, I'd get an good introductory tutorial on it. Someone posted a web page tutorial on the terminal/shell as well. Do a search on the forums and 90% of the time you'll find your question has already been answered.
To answer your question you simply enclose the name of the file in quotes. (This is true in Windows as well) So if you have a file named Downloads Keep then you could change to that directory with
cd "Downloads Keep"
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Mar 2001
Location: Provo, UT
Status:
Offline
|
|
If you are going to be using the shell much, I'd get an good introductory tutorial on it. Someone posted a web page tutorial on the terminal/shell as well. Do a search on the forums and 90% of the time you'll find your question has already been answered.
To answer your question you simply enclose the name of the file in quotes. (This is true in Windows as well) So if you have a file named Downloads Keep then you could change to that directory with
cd "Downloads Keep"
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 2000
Location: Seattle
Status:
Offline
|
|
Another trick is to drag the folder or file into the terminal, it will write the path for you.
|
You can take the dude out of So Cal, but you can't take the dude outta the dude, dude!
|
|
|
|
|
|
|
|
Junior Member
Join Date: Aug 2000
Location: Montreal, QC, Canada
Status:
Offline
|
|
Another option is to start the name and then hit tab key. The shell will attempt to complete the name, if more than one match is found, then it will complete the name until there are no more common letters between the two or more names and then it will printout the choices, so that you may finish your path/filename. Also if you have to cd to a directory which is nested several layers deep, but each directory only has one sub directory than the tab key only has one choice each time the its hit.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status:
Offline
|
|
I'm quite surprised no-one's said this yet. What you're after is the backslash character, y'know, the daft one that windoze and dos uses to delimit directories!
"The Application" in /Applications can be got to by typing :
cd /Applications/The\ Application
Remember to put the space in after the backslash as well.
------------------
Artificial intelligence is no match for natural stupidity.
|
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Nov 2000
Location: Trolling for Meader
Status:
Offline
|
|
Originally posted by Nai no Kami:
i have been playing around with the Terminal.app an I don't find a way to replace the spaces of the directory names and/or files or applications as well. If I have an app located at, say... ~/applications/The Application.app. How do I manage to invoke that app to open? I have tried "The_Application.app", "The-Application.app" and "TheApplication.app" without results. I could not found any solution by searching the man.
open The\ Application.app
or
open 'The Application.app'
The quickest way is probably:
open ~/ap[tab]Th[tab]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|