Using | with a show command

From: Adam Asay (evilshortbus@yahoo.com)
Date: Fri Nov 18 2005 - 15:53:29 GMT-3


Is it possible to match on something in a show command, then get the line above it?
  
  I am trying to do a;
  
      show run | include description test
  
  then I would like the line one above this in the config which would be the interface.
  
  Does anyone know if this is possible with IOS.
  
  Thanks
  Adam
  

                
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.



This archive was generated by hypermail 2.1.4 : Thu Dec 01 2005 - 09:12:07 GMT-3