I use a bash script to add a javascript file to a directory, but after that I need to insert into the index.html this line at between line 30 and 31.
<script type="text/javascript\" src="./js/jquery.browser.js\"></script>
I used the following command in my but it doesn't work (it prints me the content of the index.html like cat would do) :
sed '30i\ <script type=\"text/javascript\" src=\"./js/jquery.browser.js\"></script> ' /path/to/index.html
should I use perl? maybe sed directly? if so how? thank you for reading.