Linux – File Names with special characters

Background

Here I am trying to add a file to git

It is a simple git add command.

 

Script

Original


git add "$_folder/oracle/v$instance/v$instance.oracle.sql"

 

Error

Warning – Could not open directory – No such file or directory

Error – Image

Error – Text


++ git add metadata/oracle/v/v.oracle.sql
warning: could not open directory 'metadata/oracle/v/': No such file or directory
fatal: pathspec 'metadata/oracle/v/v.oracle.sql' did not match any files
++ git add 'metadata/oracle/v$instance/v$instance.oracle.sql'

 

Revision

Outline

  1. Please escape the special characters
    • git add “$_folder/oracle/v$instance/v$instance.oracle.sql”
    • git add “$_folder/oracle/v\$instance/v\$instance.oracle.sql

Script


git add "$_folder/oracle/v\$instance/v\$instance.oracle.sql"

Dedication

Gerald S.

In dedication to my brother, Gerald S.

Many years ago, we shared a cube.

I ran into a little coding problem.

I think it might have been on a Linux System or something of the sort.

He said just escape it.

I looked at him and asked, “how you know that?“.

 

See

See he went to MIT.

I went to JUCO ( Junior College ).

Forget about Cindy.

See the difference money makes.

 

Listening

Listening to…

  1. Cyndi Lauper
    • Money Changes Everything
      • Cyndi Lauper – Money Changes Everything (Live)
        Link

 

Abiding Grace

In abiding grace, people give you so much.

You walk away carefree not really understanding and grasping what it costs them and their family.

As of 2020-December, MIT costs $75,000 each year.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s