12-01-2010 04:20 AM - edited 03-06-2019 02:18 PM
What do the exclamation marks in show running-config and show startup-config say. Are they there for clean output or is there any other meaning.
12-01-2010 07:42 AM
Krishna
In show running-config and show startup-config the exclamation points are only there to help in formatting the output and to help space between sections of the config. They do not have any other meaning.
HTH
Rick
07-17-2017 04:26 AM
Hi Richard,
Is it possible to remove those "!" marks.? We have few 6807 in our network and they have an unreasonable amount of black space in between configurations.
Sarath
07-17-2017 06:22 AM
For something quick and dirty you could exclude lines with exclamation points, e.g.
show conf | ex !
or
show conf | ex ^!$
If you want to just remove leading exclamation points and replace multiple blank lines with one, you would likely need to run config through a script.
07-17-2017 08:44 AM
Sarath
The exclamation points are inserted in the output by the Cisco command parser. I do not know of a way to suppress them other than the suggestion by Joseph to use the exclude function in the show command.
HTH
Rick
11-20-2020 05:56 AM
this was an excellent response to this question!! i wish the ! could be removed, but the command helped me greatly being able to just print it out!!
Thanks
11-21-2020 01:36 AM
I am glad that the suggestion was helpful. Thank you for sharing your experience with this.
03-29-2019 01:08 PM
Thanks for that Richard.
03-31-2019 05:04 AM
You are welcome.
HTH
Rick
12-01-2010 07:53 AM
What do the exclamation marks in show running-config and show startup-config say. Are they there for clean output or is there any other meaning.
Hi,
As Rick Said just for more readable format and it is true as exclamation marks (!) are used to create blank lines as spacers. These extra lines do not affect the functionality of the router; they exist only to make the configuration files more readable.
Hope to Help !!
Ganesh.H
Remember to rate the helpful post
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide