Mosinel
Mosinel

Reputation: 165

sed replace in AQL file

I currently have the aql file below and am trying to replace dummy with another value on the fly. I've tried various sed replacements, for example sed -i '/s/dummy/real/g' filename2.aql but keep hitting the following issues:

line 1: syntax error near unexpected token `newline'
line 1: `items.find('

Does anyone know what I might be missing?

items.find(
     {
          "repo":"libs-release-local",
          "$and": [
            {
              "path": { "$match": "dummy"}
            }
          ]
     }
)
.sort({ "$asc": ["modified"] })

Upvotes: 0

Views: 90

Answers (1)

Rahul Verma
Rahul Verma

Reputation: 3089

Just remove / before s

sed -i '' 's/dummy/real/g' file

Upvotes: 1

Related Questions