-1
votes
1answer
41 views

Cygwin grep, no such file or directory

This is the first time I'm using Cygwin and I have not so much experience with scripts. I'm trying to grep words out of a XML document and need to get them counted. When I press enter I get a ...
1
vote
1answer
158 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
vote
1answer
283 views

Cygwin grep and -f switch

I've created a text file (in Windows) with the text patterns I wish to search for. Using the -f switch, grep only searches for the last pattern in the list. If there is a blank line, grep finds ...
1
vote
2answers
324 views

List all files in a directory matching a string and copy output

I'm trying to create a series of playlists on my MP3 player, running Rockbox, by finding a file matching a string, using find /cygdrive/g/MUSIC -type f -name "Search Criteria" | ...
0
votes
2answers
382 views

pdfgrep error under cygwin

I am trying to grep over some pdf using pdfgrep which I download from here: http://fd0.x0.to/cygwin/release/pdfgrep/ I then unzip it and put files into the cygwin corresponding folders. Initially I ...
1
vote
1answer
884 views

Cygwin 'grep' in files takes forever

I tried using Cygwin to emulate some cool Linux search feature, and when I do grep in files (12 text files - not big) it takes forever. I used grep -rne word I could find this word faster manually ...
1
vote
2answers
3k views

Can't pipe or redirect Cygwin grep output

How do I get Cygwin's grep to work properly in a regular cmd.exe? > grep -o 'ProductVersion\".*\".*\"' foo.txt | grep -o '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' foo.txt:ProductVersion" ...
0
votes
1answer
638 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 ...
2
votes
2answers
808 views

grep --color=auto with -i option disables the matching text color, why?

I was messing around with grep and put this in my .zshenv: export GREP_OPTIONS="--color=auto" export GREP_COLORS='mt=1;34' I was bonking my head on the keyboard and changing GREP_COLORS around for ...
12
votes
5answers
10k views

Writing “tail -f” output to another file

As a continuation from my last post where I have used grep & tail -f to find occurences of "rare" events. I would like to record this in another file. I've tried turning tail -f log.txt | ...
3
votes
3answers
9k views

Simple use of tail & grep. Multiple conditions

Apologies for my ignorance, I'm fairly new to this. I'm trying to read a log file which is being written to by a simple daemon. What I would like to do is filter my "live" output to certain - ...