0
votes
2answers
23 views

UWIN grep on windows, wildards failure

I have the UWIN unix tools, and I can't grep a whole dir full of files with *. grep term * gives grep: *: can not open [No such file or directory] whether in cmd.exe or powershell (I hate this ...
0
votes
0answers
18 views

Finding files that are mostly NUL

I've got a hard drive copy that went bad where many files are of correct size but are completely filled with NUL (0x00) bytes. However, a couple of the files seem to have a couple KB of actual data. ...
0
votes
1answer
107 views

Grep with context about matched lines in Windows

I want to search in files, recursively, with a pattern for the filename, for a given string, in a Windows 7 command prompt. I am familiar with Unix. So far, findstr /spin /c:"main" *.py is a good ...
1
vote
1answer
126 views

Cygwin doesn't seem to end with grep command

I used to use grep on cygwin on windows XP successfully. All of a sudden, now when I run grep, it never seems to end. miname@mycomputer /cygdrive/c/emacs $ grep "lkjlkjlkjlkjlkjlkjlkjlkjlkjlkjlkj" ...
-1
votes
1answer
145 views

Grep : Windows version, free alternative? [duplicate]

I am trying to source a tool for performing a search and replace of text files in a directory. I think this is similar to what grep does for linux. I was hoping to find a tool with a gui so I could ...
5
votes
1answer
768 views

What does the grep switch --color=auto do?

What effect does auto as an option for the --color switch have in grep? When does grep decide to color the the matching strings, and when doesn't it?
2
votes
1answer
143 views

Is there any file content search tool that decompresses JAR files before looking into it?

I use Agent Ransack to grep entire directories. But it doesn't unzip JAR files before looking into them, is there any tool that does that?
0
votes
1answer
230 views

How to pipleline stderr in cmd.exe?

Some programs would prefer to output the help message in stderr. I want to search the help message with grep command, xx /? | grep regex? How could i do this?
3
votes
1answer
631 views

Grep file in GVIM on Windows

On Linux, I sometimes see a list of all the lines which match a term with this handy command: :! grep -n "term" % However, I am now stuck on a Windows XP SP3 machine which lacks grep! Is there a ...
1
vote
3answers
165 views

Grep-like tool for all filetypes?

Is there a grep/ack/grin-like tool for all filetypes (including MS Office, PDF, etc)? I frequently find myself wanting to search a folder or an entire disk for strings inside files that are more than ...
3
votes
3answers
214 views

Bulk renaming files [duplicate]

Possible Duplicate: How can I mass rename files from the command line or using a 3rd party tool? So I have a series of files with the following format Their real file name followed by the ...
0
votes
1answer
589 views

Error “grep exited abnormally with code 2” on Xemacs 21.4.22 on Windows 7

I am trying to run grep (cygwin) within Xemacs 21.4.22 on windows 7 enterprise laptop. cd c:\ grep -n -r --include=*.java "foo" NUL: grep: NUL:: No such file or directory grep exited abnormally with ...
1
vote
3answers
386 views

SW to replace a string in Windows

I have a text file (actually XML) that I want to be able to change using a command line. In other words, as part of a Windows batch, I want to locate a string (in this case @@@@, which uses a ...
1
vote
1answer
654 views

How can the Windows Command Line do a grep -o?

Is there a way in Windows to get a matching string within a string? echo hereisastring | find "is" and just display is without using grep The following worked using FIND. credit to Hello71 ...
3
votes
2answers
873 views

Tool to fix file names starting with =_iso-8859-1… in .eml file names?

I have a folderful of E-Mails saved from an IMAP account that I dissolved. The file name is the subject line of each E-Mail. Now unfortunately, when a non-ASCII encoding is used, the subject line ...
4
votes
6answers
773 views

'grep' for Windows?

What is the best, free, grep application for use with Windows instead of Linux?
9
votes
6answers
3k views

Unicode grep for Windows

Is there a Unicode-aware grep for Windows 32-bit?