{"id":12899,"date":"2021-12-10T07:40:33","date_gmt":"2021-12-10T07:40:33","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=12899"},"modified":"2021-12-10T07:41:39","modified_gmt":"2021-12-10T07:41:39","slug":"solved-for-loop-variable-number-of-lines-to-skip","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/for-loop-variable-number-of-lines-to-skip\/30120.html","title":{"rendered":"Solved FOR Loop &#8211; Variable Number Of Lines To Skip"},"content":{"rendered":"<p>I&#8217;m working on a batch script where I use a variable to tell the FOR how many lines to skip.<\/p>\n<pre>for \/f \"skip=!lines! tokens=1-3* delims=,\" %%A in (_!file!.txt)<\/pre>\n<p>However this does not seem to work. When I put a static number (replacing !lines! with a number) it works. Is there a way to make this work?<\/p>\n<p><span style=\"color: gray; font-size: small;\">99 little bugs in the code,<br \/>\n99 little bugs.<br \/>\nTake one down, patch it around,<br \/>\n129 little bugs in the code.<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":21},"question-category":[55],"question_tags":[],"class_list":["post-12899","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\/12899","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=12899"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=12899"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=12899"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=12899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}