pagemap
04-25-2002, 08:41 PM
Puts a no[space] before all lines of a text file. Say I have the following access lists on my router:
access-list 102 permit ip 192.168.1.0 0.0.0.255 any
access-list 111 permit tcp any any eq ftp
access-list 111 permit tcp any any eq www
access-list 111 permit tcp any any eq 4000
I want to put a no in front of all these access lists to remove them from the router, so I want a small application that will open the text file and modify the text file so that it looks like this after the program completes:
no access-list 102 permit ip 192.168.1.0 0.0.0.255 any
no access-list 111 permit tcp any any eq ftp
no access-list 111 permit tcp any any eq www
no access-list 111 permit tcp any any eq 4000
Thanks!!!
access-list 102 permit ip 192.168.1.0 0.0.0.255 any
access-list 111 permit tcp any any eq ftp
access-list 111 permit tcp any any eq www
access-list 111 permit tcp any any eq 4000
I want to put a no in front of all these access lists to remove them from the router, so I want a small application that will open the text file and modify the text file so that it looks like this after the program completes:
no access-list 102 permit ip 192.168.1.0 0.0.0.255 any
no access-list 111 permit tcp any any eq ftp
no access-list 111 permit tcp any any eq www
no access-list 111 permit tcp any any eq 4000
Thanks!!!