Originally posted by wudixin96 at 2007-9-17 10:30 AM:
for /f "delims=" %%i in ('dir /a-d /-c^|findstr /r "*--"') do echo %%i
只针对6楼的问题
其实用sed可以很好的解决楼主的问题
...
其实还是烦了,既然都用到findstr还要for干甚
dir/a-d/-c|findstr /b 2008
Originally posted by wudixin96 at 2007-9-17 10:30 AM:
for /f "delims=" %%i in ('dir /a-d /-c^|findstr /r "*--"') do echo %%i
Only for the problem of floor 6
In fact, sed can solve the problem of the landlord very well
...
In fact, it's still troublesome. Since findstr is used, why use for?
dir/a-d/-c|findstr /b 2008