Timeline for sed invalid option error for file names containing spaces
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 17, 2020 at 9:43 | vote | accept | rathindu_w | ||
| Dec 17, 2020 at 9:34 | answer | added | Kusalananda♦ | timeline score: 2 | |
| Dec 17, 2020 at 9:34 | comment | added | Gordon Davisson |
The sed command you give here is ok, but the one in the replace_file_content function is not, and is probably where the error is coming from. The problem (there and a number of other places in the script) is failing to double-quote variable references. Use shellcheck.net to spot common mistakes like this.
|
|
| Dec 17, 2020 at 9:24 | history | asked | rathindu_w | CC BY-SA 4.0 |