
CODE: [Copy to clipboard]@echo off
set/pstr=Please input the string:
for /f "delims=" %%a in (1.txt) do (
if not defined lxmxn echo %%a|findstr "%str%" >nul&&set lxmxn=online
if defined lxmxn echo/%%a
)
pause&exit
| Quote: | |
|
CODE: [Copy to clipboard]昨天开始学的 sed = =b 试试sed -n /555555555555/,//p 1.txt>2.txt
CODE: [Copy to clipboard]sed -n /555555555555/,//p 1.txt|more>2.txt
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |