Ferhat's Blog

There will be only one database

How to open files starting with + (plus) using vi

Posted by fsengonul on October 26, 2010

Oracle names the ASM trace files with the instance name. If you try to open a file whose name starts with + (plus) ,  you cannot use quotes or  escape character.
Instead you have to use -- in order to get rid of options.
vi -- +ASM8_s001_8349.trc

5 Responses to “How to open files starting with + (plus) using vi”

  1. […] How to open files starting with + (plus) using vi October 20101 Like on WordPress.com, 5 […]

  2. hiro said

    Really good trick

  3. Brooke said

    Excellent, thanks. I really needed this! (Using Vim on Mac in Terminal.app)

  4. SamV said

    This was really helpful. I tried all kinds of ways including \, quotes, * etc. Nothing worked. Your suggestion worked. Thanks.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: