This question was a puzzling one: instructing sed
to read a script file, upon which it signals a Bad Flag. It turned out that the script file was in little endian Unicode 16, a format that all editors I used (including Vim) read without issues, but that sed
cannot interpret; it requires ASCII. User jerry helpfully offered a method to determine file format, which solved the issue.
The question was downvoted. When I linger on the downvote link, it states: "This question does not show any research effort, it is unclear or not useful". This leaves me wondering: How do I improve it?
sed
still threw an error.dos2unix
only changed the CRs, not the file format.