Tagged Questions
1
vote
1answer
101 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
204 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
202 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
484 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
1k 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
348 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
1answer
748 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 ...
9
votes
5answers
6k 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
7k 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 - ...