Welcome to ServerForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

FINDSTR search for a couble quote and redirect/pipe the ou..

 
   Windows Server (Home) -> Windows Server General RSS
Next:  new hardware  
Author Message
JasonDWilson

External


Since: Jan 13, 2006
Posts: 3



(Msg. 1) Posted: Fri Jan 13, 2006 5:37 pm
Post subject: FINDSTR search for a couble quote and redirect/pipe the output
Archived from groups: microsoft>public>windows>server>general (more info?)

I cannot get FINDSTR to search for a string that contains a double quote and
redirect its output. It seems to get confused with the double quote. It
works fine and will alaways return its answers to the screen but I cannot
redirect any search looking for a double quote. I can redirect any other
searches though. Below are some examples


This works (searching for ." ):
findstr /S /I /M /C:"\.\"" *

This does not work (same search, just redirect output):
findstr /S /I /M /C:"\.\"" * > x.txt

This works (search for dbo and redirect output to z.txt):
findstr /S /I /M /C:"dbo" * > z.txt

--
Jason

 >> Stay informed about: FINDSTR search for a couble quote and redirect/pipe the ou.. 
Back to top
Login to vote
"Pegasus

External


Since: Feb 18, 2004
Posts: 4307



(Msg. 2) Posted: Sat Jan 14, 2006 1:15 pm
Post subject: Re: FINDSTR search for a couble quote and redirect/pipe the output [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"JasonDWilson" wrote in message

> I cannot get FINDSTR to search for a string that contains a double quote
and
> redirect its output. It seems to get confused with the double quote. It
> works fine and will alaways return its answers to the screen but I cannot
> redirect any search looking for a double quote. I can redirect any other
> searches though. Below are some examples
>
>
> This works (searching for ." ):
> findstr /S /I /M /C:"\.\"" *
>
> This does not work (same search, just redirect output):
> findstr /S /I /M /C:"\.\"" * > x.txt
>
> This works (search for dbo and redirect output to z.txt):
> findstr /S /I /M /C:"dbo" * > z.txt
>
> --
> Jason

Try this:

findstr > x.txt /S /I /M /C:"\.\"" *

 >> Stay informed about: FINDSTR search for a couble quote and redirect/pipe the ou.. 
Back to top
Login to vote
JasonDWilson

External


Since: Jan 13, 2006
Posts: 3



(Msg. 3) Posted: Sun Jan 15, 2006 6:29 pm
Post subject: Re: FINDSTR search for a couble quote and redirect/pipe the output [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That works, but that is different than any other program. Looks like a bug
to me.

Thanks,
--
Jason


"Pegasus (MVP)" wrote:

>
> "JasonDWilson" wrote in message
>
> > I cannot get FINDSTR to search for a string that contains a double quote
> and
> > redirect its output. It seems to get confused with the double quote. It
> > works fine and will alaways return its answers to the screen but I cannot
> > redirect any search looking for a double quote. I can redirect any other
> > searches though. Below are some examples
> >
> >
> > This works (searching for ." ):
> > findstr /S /I /M /C:"\.\"" *
> >
> > This does not work (same search, just redirect output):
> > findstr /S /I /M /C:"\.\"" * > x.txt
> >
> > This works (search for dbo and redirect output to z.txt):
> > findstr /S /I /M /C:"dbo" * > z.txt
> >
> > --
> > Jason
>
> Try this:
>
> findstr > x.txt /S /I /M /C:"\.\"" *
>
>
>
 >> Stay informed about: FINDSTR search for a couble quote and redirect/pipe the ou.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Problem with searching for text with findstr - Hello, I'm using MS backup in a batch file for a Windows 2000 server machine. I'm having a problem matching strings in the log file to detect errors. For example if the USB backup drive is unplugged and I open the log file in notepad, the log files..

idle spoolss pipe session - Hello, We have a windows 2000 server that is being used as a print server. We are having license connection issues because sessions are not disconnecting after someone prints something. They are idle and the file open is \PIPE\spoolss. Is there anywa...

All pipe instances are busy - Problem in 2003 Server? - When I try to start more than 100 services in NT4/W2k I get error 0231: "All pipe instances are busy". Why? This is a hardcoded limit in NT4/W2k. Does this limit apply on Windows 2003 Server? If not, there's not point in upgrading...

Event ID 3318, RPCDBT : Error (2) in transacting named pipe - Help, I'm trying to get to the bottom of this event id, but cannot find anything, anywhere about it..inc TechNet & m/soft Can anyone help me out on this one please. TIA

quote double quote problem - Help, this is really weird. on my W2KPro machine if i press the " key once, nothing shows up. if i press it again, two " show up like this "". One press of " key = NOTHING Second press of " key = "" (ie double qu...
   Windows Server (Home) -> Windows Server General All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]