findstr Questions

2

Solved

I have a program that is using findstr, and when the string is found the errorlevel returns 0 and when the string is not found the errorlevel returns 1. Alright, that's fine I can deal with that. ...
Concierge asked 4/8, 2015 at 13:41

2

Solved

I want to search one string e.g. "main" in my project on windows OS recursively. I searched that and find a solution Windows recursive grep command-line I applied same with two different approach,...
Paine asked 2/8, 2013 at 5:8

8

Solved

How do I write a regex to match any string that doesn't meet a particular pattern? I'm faced with a situation where I have to match an (A and ~B) pattern.
Legerdemain asked 4/3, 2009 at 18:37

1

Solved

I found magoo's post and been playing around with it. I can't seem to get the DIR part to parse out the file name to create the folder and move the files to the respective folders. The following ar...
Wondrous asked 8/12, 2014 at 16:31

3

I tried to find the solutions in many places but couldn't find specific answer. I am creating a batch script. The following is my code so far @echo off SETLOCAL EnableDelayedExpansion cls for...
Imbed asked 15/11, 2014 at 3:58

3

I have a large directory of folders (call it C:\Main). I need to set up a batch script to search the subfolders of that directory for a string within the filename (not the text within the file). I'...
Xochitlxp asked 25/4, 2013 at 20:33

2

Solved

I have a batch file with a portion shown below: rem @echo off cd C:\Program Files\CA\AllFusion Gen\GEN\test8.ief\c\ FINDSTR /C:"'V1600 OPER'" /C:"'V1714 OPER'" /C:"'V1801 OPER'" /C:"'V1901 OPER...
Tubbs asked 20/2, 2014 at 7:31

4

Solved

This is a question for the batch pro's i guess. Seems a lot of people do stumble over IP veriffication while batching, while just using windows built in functinallity, but no real code is to find. ...
Groark asked 30/11, 2013 at 10:43

1

Solved

does anyone know why this would not work (Windows 7, batch script)? C:\testing>FINDSTR /R /N "^.*$" test.txt | FIND /C ":" FIND: `/C': No such file or directory FIND: `:': No such file or dire...
Tomfool asked 28/10, 2013 at 18:38

1

Solved

findstr /S "stored procedure" *.* returns all the files with the string "stored" as opposed to "stored procedure". Does anyone know what I am doing wrong? Thanks
Uncinus asked 24/5, 2013 at 17:36

2

Solved

Someone great in this site give me this code at batch change folder name by read line from text file @echo off pushd "your root location" for /f "tokens=1* delims=:" %%A in ( 'findstr /srbc:"SMT...
Nord asked 9/1, 2013 at 9:44

2

Solved

I'm trying to write a simple batch that will loop through every line in a file and if the line contains "apples" or "tomato" then to output that line. I have this code to find one string and outpu...
Darnley asked 11/10, 2012 at 15:56

2

Solved

I must check the validity of a string stored in a variable, I can not use external CLI utilities (grep, awk, etc.) so I chose FINDSTR. The string has this format (in regexp): ([1-9][0-9]*:".*"(|"....
Vernitavernoleninsk asked 23/9, 2012 at 18:42

1

I'd like to search through multiple text files in a single directory for a string ('monkey'), if the string exists, then either, depending on what's easiest: rename the matching string - e.g. cha...
Severity asked 8/8, 2012 at 16:18

2

I had to switch off my windows search indexing in Windows 7 as the old hard disk was constantly making noise with indexing switched on! Now I want to use Windows command prompt to search for a spe...
Sporangium asked 1/2, 2012 at 14:1

1

Solved

Hallo All, I have a little Problem with the SubString-Function in SSIS (Derived Column). So on.. That are the possible Input Strings: Toys|Category|Cars|Lego Toys|Hot&New|Girls&Lifestyl...
Supersonic asked 16/3, 2011 at 11:27

1

Solved

I have a need to use the DOS command FINDSTR to search in all our source code files mixed with other types of files such as PDF, exe, dll, etc. I do not need to search those binary files. Is there...
Lexical asked 26/10, 2010 at 18:3

1

Solved

I have a text file with a list of macro names (one per line). My final goal is to get a print of how many times the macro's name appears in the files of the current directory. The macro's names ar...
Rattan asked 17/6, 2010 at 13:39

© 2022 - 2024 — McMap. All rights reserved.