Hi all
I am trying to create a daily script which is getting every day at 11pm the index file of a website with wget, and is placing that file to my own web-server .
When I run the script as follow, everything working
./the-name-of-the-script
But, every time that I live to crone to make...
Hi,
I have a file with 2 numbers, for example:
215
816
Can I use the numbers of this file, to delete some lines of one other file with the use of sed,awk,…?Is there a way to pass this numbers as parameters to sed or awk and delete the lines from 215 to 816 of one other file?
Thanks
BEGIN { t=-1 }
/<table class="newstable">/ { t=0 }
/<table.*>/ { t++ }
t>0
/<\/table>/ { t-- }
And how can i move the lines to another file with the above coding?
Thanks
IF i want to stop print the lines from the second </table>
etc
<html>
.....
<table class="newstable"> ---> from here
<tr>
<td>
<table>
.......
</table> -- first </table>
</td>
</tr>
</table> ---> to here (second </table>)
...
</html>
(start from "newstable,"find the next...
I have the next html file
<html>
....
<table class="newstable"> ---> from here
....
</table> ---> to here
...
</html>
How can i get only the text from the line <table class="newstable"> to the next </table> to another file, with the use of awk or other filters?
As a flag from start moving lines...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.