There is an A.TXT file. When finding JKLJHLL in it, delete the lines containing the string JKLJHLL (case-insensitive).
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!
@echo off
for /f "delims=" %%i in ('findstr /i /v /c:JKLJHLL a.txt') do (
echo %%i>>temp.txt
)
start temp.txt
Originally posted by pengfei at 2006-10-18 05:21 AM:
@echo off
for /f "delims=" %%i in ('findstr /i /v / JKLJHLL a.txt') do (
echo %%i>>temp.txt
)
start temp.txt
I wonder if this is the effect the poster requested...
| Rater | Score | Time |
|---|---|---|
| redtek | +6 | 2006-10-18 22:52 |
Originally posted by mountvol at 2006-10-12:07:
findstr /ivc:"JKLJHLL" a.txt >b.txt
Originally posted by mountvol at 2006-10-18 11:07:
findstr /ivc:"JKLJHLL" a.txt >b.txt
Originally posted by pillow at 2007-12-12 15:34:
Searching "delete line" only finds this one post,
The problem I need to handle is a bit extreme. I need to compare the lines that are in file A but not in file B.
There are two TXT files, with more than 5000 lines (named A) and 20 ...