I have tried to start one file up to a limit of another, that is, line 1 to 10 (file1.txt) While typing on file2.txt -> "!" Any help I can do to solve it will be grateful.
Loop is given below for that function.
% NF% - & gt; new file. % FE% - & gt; Existing file% 1% - & gt; Line number (passed from second part): _doit findstr / n / r "." % EF% Findstr / b / c: "% 1:" & gt; Null If Error Level 1 (echo. Gt; & gt;% NF%) Others (for / f "tokens = 1 delims =" %% a in ('explorer / n / r') "% EF% ^ | searchstor / B / c: "% 1:" ') (If [%% A] is echo [] (echo> gt; & gt;% NF%) Other (copy %% A & gt; & gt;% NF
If you can download the tool, you can
You can use pre> gawk.exe "NR & gt; 10 {exit} 1" file1 & gt; File2
and you can see the same thread Is similar
Comments
Post a Comment