using sed to find and replace in bash for loop

前端 未结 4 1978
一生所求
一生所求 2021-01-06 15:21

I have a large number of words in a text file to replace.

This script is working up until the sed command where I get:

sed: 1: \"*.js\": inval

4条回答
  •  迷失自我
    2021-01-06 15:44

    You're running BSD sed (under OS X), therefore the -i flag requires an argument specifying what you want the suffix to be.

    Also, no files match the glob *.js.

提交回复
热议问题