cat a file in script

any way to ‘cat’ or ‘type’ a file so I can loop thru entries? Im thinking of using this URL to build a list of bogons for a chain:

http://www.completewhois.com/bogons/data/bogons-cidr-all.txt (way too big obviously)
http://www.completewhois.com/bogons/data/data-bgp-announced/announced_bogon-cidr-all.txt (better subset + the bogons we already filter)

I was trying to ftp this to the firewall and have it generate a ‘bogons’ chain automatically, but I don’t see a way to :foreach a file and loop thru each line. I was going to process it into a script and then ftp it up and execute it, but i’d like to keep everything local on the firewall if possibe (except the uploading of the list with no wget present).

Any ideas?

Sam

Write a shell script wich will login to your routeros and and execute the loop.