View Single Post
Old 2018-05-14, 09:40   #1
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

17·79 Posts
Default Batch file problem

When we got factors from YOYO, I wrote small bat file to automatize project.
All goals I need is done except one: I need that line ( header with sieve depth and base ) be first, but not last ( as I get) when I start bat file
Any idea?
Thanks


Code:
title REMOVE FACTOR
SET /P n= input base number:
sr sr_%n%.abcd -k factors.txt -g
del llr.txt
COPY *.npg all.txt
sort -n -k2 all.txt >>llr.txt
findstr /v "5000000000:P:1:%n%:257" llr.txt > BASE.txt
del llr.txt
del all.txt
echo.25000000000000:P:1:%n%:257 >>BASE.txt
rename BASE.txt BASE%n%.txt

Last fiddled with by pepi37 on 2018-05-14 at 09:41
pepi37 is offline   Reply With Quote