Search found 3 matches
- 11 Feb 2013 20:55
- Forum: DOS Batch Forum
- Topic: findstr in variable
- Replies: 18
- Views: 31114
Re: findstr in variable
hi squashman. i tried your suggestion but its not working.
- 11 Feb 2013 20:40
- Forum: DOS Batch Forum
- Topic: findstr in variable
- Replies: 18
- Views: 31114
Re: findstr in variable
hi. that tip helped me get the number of lines into a file called a.txt. but i need to know how to get it into a variable on the screen and output it like:
"there are n lines"
"there are n lines"
- 11 Feb 2013 16:02
- Forum: DOS Batch Forum
- Topic: findstr in variable
- Replies: 18
- Views: 31114
findstr in variable
Hi. I have the following which counts the number of lines in the file:
Findstr /R /N "^" "C:\test\test.csv" | find /c ":"
I am trying to figure out how to get the resulting number into a variable so i can output:
there are VARIABLE lines.
Please help. Thanks
Findstr /R /N "^" "C:\test\test.csv" | find /c ":"
I am trying to figure out how to get the resulting number into a variable so i can output:
there are VARIABLE lines.
Please help. Thanks