{"id":10652,"date":"2021-12-06T09:19:37","date_gmt":"2021-12-06T09:19:37","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=10652"},"modified":"2021-12-06T09:20:01","modified_gmt":"2021-12-06T09:20:01","slug":"windows-batch-file-extracting-lines-of-text","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/windows-batch-file-extracting-lines-of-text\/23046.html","title":{"rendered":"Windows Batch File: Extracting Lines Of Text"},"content":{"rendered":"<p>I have only written a few batch files and I have only done very simple things to automate my work. I have a big analysis to do and I really need help automating it or it will be impossible. I have 100 text files that are output from a program. I would like to go through the 100 files and extract a single line of text from each to copy into a new file that would contain all 100 lines in the same file. The line begins with a unique string followed by 16 numbers. There are spaces between the string and the numbers. As an example,<br \/>\nuniquestring 1.0 128 32 32 22 22 27 0 5.5 7.6 10.8 1.0 2.0 1.0 4.0 13.0<br \/>\nI would really appreciate any help.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":12},"question-category":[55],"question_tags":[],"class_list":["post-10652","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\/10652","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=10652"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=10652"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=10652"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=10652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}