Hi all, I ran into a problem during Lingua Franca. the sed command returned an error invalid command W. Searching for an answer brought me to this
If you are on a OS X, this probably has nothing to do with the sed command. On the OSX version of
sed , the
-i option expects an
extension argument so your command is actually parsed as the
extension argument and the file path is interpreted as the command code.
Try adding the
-e argument explicitly and giving
'' as argument to
sed -i '' -e "s/search string/replace string/" directory/file.extention ; It links out https://stackoverflow.com/questions/7573368/in-place-edits-with-sed-on-os-x Figured I'd bring it up in case anyone else uses OsX and ran into the same problem?