Data in my jsp file is as follows:
Extract the name of all include page jsp file name
<!--- Global Nav Start -->
<jsp:include page="/includes/GlobalNav.jsp" >
<jsp
aram name="CMCat" value="TechProp" />
</jsp:include>
<!--- Global Nav End -->
<!-- Primary Nav Start -->
<jsp:include page="/includes/PrimaryNav.jsp" flush="true" />
<!-- Primary Nav End -->
<!-- Secondary Nav Start -->
<jsp:include page="/includes/SecondaryNav.jsp" flush="true" />
<!-- Secondary Nav End -->
<!--Language Link Start -->
<jsp:include page="/includes/LangLink.jsp" flush="true" />
<!--Language Link End -->
<!-- Main Content and Left Navigation start -->
<table width="760" bgcolor="#FFFFFF" height="22" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="151" valign="top">
<!--Left Navigation start -->
<jsp:include page="/accounts/includes/LeftNav.jsp" flush="true" />
<!-- Left Navigation End -->
My output should look like this
/includes/GlobalNav.jsp
/includes/PrimaryNav.jsp
/includes/LangLink.jsp
/accounts/includes/LeftNav.jsp
use sed or awk