{#}  Replies are directed back to [EMAIL PROTECTED]
{#}  To reply to the author, write to mjn <[EMAIL PROTECTED]>

On 2/27/02 2:00 AM, "David Thorp" <[EMAIL PROTECTED]> said something
like:

> {#}  Replies are directed back to [EMAIL PROTECTED]
> {#}  To reply to the author, write to David Thorp <[EMAIL PROTECTED]>
> 
>>> However... while we're on this... can anyone tell me how to:
>>> 
>>> "cd application support"
>>> 
>>> that line doesn't work - the space between "application" and "support" cause
>>> the terminal to respond with:
>>> 
>>> cd: too many arguments.
>>> 
>>> Of course, that's always been a unix thing - spaces separate the arguments,
>>> so a file name with a space is going to really mess things up.
>> 
>> As Lasse pointed out, the way round this is to escape the spaces with
>> a backslash. You can also drag a folder into an open Terminal window
>> and it'll paste the path at the insertion point, so you can do:
>> 
>> cd [drag folder to the Terminal window]
>> 
>> and you'll get
>> 
>> cd /Library/Application\ Support
>> 
>> complete with trailing space in case you want to drag a bunch of
>> files... so you can type
>> 
>> cat [drag a few Fire sessions to the Terminal window] > bigfile.txt
>> 
>> and you've got your merged file :)
>> 
>> John.

Don't forget about auto-completion.  From the prompt, type in the first few
characters of the directory/file you want to access and then hit "TAB" and
it should provide the full filename.  If there is more than one suitable
name, double-tapping "TAB" will display a list of matching files...

Bash rulz...

-mjn


{#} ----------------------------------------------------+[ fire ]+---


Reply via email to