{"id":11788,"date":"2021-12-08T08:28:02","date_gmt":"2021-12-08T08:28:02","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=11788"},"modified":"2021-12-08T08:28:21","modified_gmt":"2021-12-08T08:28:21","slug":"solved-extract-by-a-batch-file-the-lines-located-between-two-tags","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/extract-by-a-batch-filethe-lines-located-between-two-tags\/28951.html","title":{"rendered":"Solved Extract By a Batch File, The Lines Located Between Two Tags"},"content":{"rendered":"<p>I need to pick up by a batch file, the lines located between two tags within a text file. For example:<\/p>\n<p>my file.txt:<\/p>\n<p>E024=ER<\/p>\n<p>R024= 1.0BX\/FT<br \/>\nTRAJET-<br \/>\n1 PR 5024 OP16MAR 6 LPD PLY BI1 22:30 06:30 17MAR 7 AL<br \/>\nSAC<br \/>\nBUREAUX EFFECTIFS &#8211;<br \/>\n1.ETAGE\/A1 15MAR ETC 17MAR FRPLY<br \/>\nDATE LIMITE D&#8217;ECHANGE &#8211;<br \/>\n1.T- 29JAN 11:27 INDIVIDUEL<br \/>\nTK 471144962 DE<br \/>\nTELEPHONE &#8211;<br \/>\n1. NC<br \/>\nRECU DE-TE<br \/>\nC-TBH<br \/>\nPNO.HDQ4D 1127\/29JAN13 QYOXPL H<\/p>\n<p>E025=I<\/p>\n<p>end file.<\/p>\n<p>I want to extract all lines between the specific strings &#8220;E024&#8221; and &#8220;E025&#8221;, except them. Please how can i do that? Now I only got one line. Thank you in advance<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":10},"question-category":[55],"question_tags":[],"class_list":["post-11788","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/11788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=11788"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=11788"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=11788"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=11788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}