fork(1) download
  1. #!/usr/bin/perl
  2.  
  3. my $node_config = "
  4. enable secret 3 *******
  5. enable passwords something
  6. aaa authentication login
  7. aaa authentication login
  8. aaa authentication enable
  9. aaa authorization console
  10. aaa authorization config";
  11.  
  12. $node_config =~ s/(?:^|\n)(?:enable passwords|aaa) .*//g;
  13.  
  14. print $node_config;
Success #stdin #stdout 0s 6044KB
stdin
Standard input is empty
stdout
enable secret 3 *******