質問編集履歴

1

コード内容に間違いがありましたので更新しました。

2018/07/26 06:54

投稿

kotakeshi0923
kotakeshi0923

スコア28

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,4 @@
6
6
 
7
7
 
8
8
 
9
- set lines=0
10
-
11
- for /f %%i in (new_file.txt) do (if %count% gtr !lines! ( echo %1 & set /a lines+=1))
9
+ for /f %i in (new_file.txt) do (if !lines! lss %count% ( echo %i & set /a lines=lines+1))