'sed: command garbled:' error on Solaris
Command below runs fine on Linux but gives 'sed: command garbled:' on Solaris
sed '/Upcoming/ i\<li><a href=news_events/news_letter.html>News Letter</a></li>' Any thoughts ? |
I'm a little rusty, but doesn't the text to be inserted have to be on a new line?
Code:
sed '/Upcoming/ i\ |
This works on SunOS sulu 5.9 Generic_118558-26 sun4u sparc SUNW,UltraAX-i2
echo Upcoming | sed 's/Upcoming/i\<li\>\<a href=news_events\/news_letter.html\>News Letter\<\/a\>\<\/li\>/' |
Thanks for help guys.
I was trying to insert the text before the line containing the word 'Upcoming' Steve's version of command does that perfectly well. Sk your version though runs fine replaces the text 'Upcoming'. Thanks again, Shikhar |
All times are GMT -5. The time now is 08:13 PM. |