The cli command fails on linux (ubuntu), it just prints out the sed usage, implying an invalid sed command. I think it's because you have sed -l but the l option expects a number after it. Or does the l option have a different meaning on Mac (not line length)? If I put a zero after the -l, then it seems to work ok.