I’m trying to execute the following command and sed is not liking it. I’m sure the fix is simple but I haven’t found any solutions yet.
On lines that don’t begin with http, I’m trying to place the contents of $currentlink at the beginning of the line. Sed is throwing an error. Any help would be greatly appreciated–thanks!
sed '/^http/!s/^/$currentlink\//g'
Try this please: