I'm trying to run this command:
$ while :; do clear; curl $(head -5 fullCommands2.txt); sed -i '' -e 1,5d < fullCommands2.txt; sleep 400; done
Upon execution I'm given the error "sed: -i may not be used with stdin
". I've looked several other solutions such as the ones presented here sed: -i may not be used with stdin on Mac OS X. However I keep getting the same error no matter how I change it.
How can I get this to run?