I'm learning sed and I'm currently stuck with the following problem:
I want to extract the lines found between
^C's from the following output:
banner exec ^C This is the banner ^C banner motd ^C This is the MOTD banner ^C ! line con 0 exec-timeout 0 0 privilege level 15 logging synchronous
I'm using this as a reference, but it doesn't seem like a good idea if you don't know how many lines you will be capturing. What would be the best way to deal with this?