Results 1 to 1 of 1
So for a forum spam filter I need to extract the spam bot IP addresses from http://www.clanorb.com/banlist.php , and converts it into a single file with an IP address for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-05-2007 #1Just Joined!
- Join Date
- Dec 2005
- Posts
- 2
sed help
So for a forum spam filter I need to extract the spam bot IP addresses from http://www.clanorb.com/banlist.php, and converts it into a single file with an IP address for each line.
I got stuck at this sed command:
But there is still html code at the end of the line that needs to be removed, but I didn't succeed in finding the sed command for that. Also the sed command I tryed for replacing the commas with line breaks isn't working:Code:sed -n -e '/159.148.11.5,/,/div/p' banlist.php > banlist
Any help?Code:sed 's/,/\n/g' csv.file > linefeed.file


Reply With Quote
