Eli Fulkerson .com HomeProjectsNo
 

no

no is a console program that toggles the presence of a leading 'no ' on lines of text that is piped through it. I wrote it to more easily bulk configure Cisco devices.

Usage:

  
  no takes stdin, and toggles the presense of a leading 'no ' on each line.

  cat config.txt |no

  Options:
  --toggle : Default behavior, toggle 'no ' on where it is not and vice versa
  --add    : Always add a 'no' if it isn't present (also -a)
  --delete : Always strip a 'no ' if it is present (also -d)
  

License:

GPLv3

Download:

source code - compile with g++