Solved Batch to using findstr to finding string have blank space.

May 14, 2013 at 09:44:23
Specs: Windows XP
The question on title.

For %%a in ("blank space strings" not_blank_space_strings) do echo %%a |findstr ...
How to more command to sprints out strings has blank space ?.
Sorry my english is bad.
Thanks.


See More: Batch to using findstr to finding string have blank space.

Report •

#1
May 14, 2013 at 20:55:57
✔ Best Answer
Yeh, the language barrier is present and accounted for. (I'm a total loss with languages, so I'm not criticizing in the least). You can always post some examples of "input" and desired "output" to help overcome this. Anyway, with that said, my interp came up with this possibility:
@echo off & setlocal
for %%a in ("a b c" xxx yyy zzz) do echo %%a | findstr /r /c:"\".* .*\""

it filters out xxx, yyy, zzz, and only outputs a b c (quoted items) if it has a space in it.


Report •

#2
May 15, 2013 at 02:56:37
Wow. Thank you very much.
i love like it.

Report •
Related Solutions


Ask Question