I have a file which need to delete some lines based upon some strings
This file is called 829501.txt
- \T501-08815-0103\Application_Signing\Signed_Schemes\QA_Infra-SL_0102_Signed_T3\
.500006011000.S3S
.500007011000.S3S
.500008011000.S3S
.500009011000.S3S
.500010011000.S3S
.500011011000.S3S
.500012011000.S3S
.500014011000.S3S
.500015011800.S3S
.500016011000.S3S
.500028011201.S3S
.500072010400.S3S
.500129010200.S3S
.500134010100.S3S
.500142010100.S3S
.500144010100.S3S
- 50001101,
50007201,
Code: Select all
findstr /v "50001101 50007201" 829501.txt >updated.txt
- \T501-08815-0103\Application_Signing\Signed_Schemes\QA_Infra-SL_0102_Signed_T3\
.500006011000.S3S
.500007011000.S3S
.500008011000.S3S
.500009011000.S3S
.500010011000.S3S
.500012011000.S3S
.500014011000.S3S
.500015011800.S3S
.500016011000.S3S
.500028011201.S3S
.500129010200.S3S
.500134010100.S3S
.500142010100.S3S
.500144010100.S3S
1) improve the code via using file removal.txt inside the code?
Code: Select all
findstr /v "50001101 50007201" 829501.txt >updated.txt
so later I can use as a variable for the findstr command
Code: Select all
set sch=50001101 50007201
findstr /v "%sch%" 829501.txt >updated.txt
Maybe you have better solution than mine...
Thanks