Wed Apr 17, 2013 9:21 pm
we have a script that that updates the configurations on our router boards. For many of the things we can use remove [find] command to delete everything in the list before putting in the new entries. Now that there are defaults on many things like logging, the commands does not complete as there are defaults that cannot be removed. I have tried everything but can't find a way to delete all non default settings. I have played with various loop ideas but it appears that you cannot remove a line number from within a script.