0
votes
0answers
24 views

Issues with Grep

Why does the bottom line output "0" into the "AD-Results-$month-$Y" file? First grep command fgrep "$month $D $i:" $Filetmp > TempOutput Grep command to read "allows" from tail of ...
4
votes
2answers
598 views

regex search works with `grep -E` but not with bash script?

I use the same regex with grep and it gives me a match but when doing it in a bash script, it return no match. Test String(part of the file testregex.txt): <a ...
1
vote
2answers
250 views

using egrep to find missing @ in log

I am using the following command to find log entries that are the result of a log in to the email server: egrep '_login[^ ]' /var/log/exim_mainlog That works fine to find entries that contain ...
9
votes
2answers
14k views

How Do I fetch only the numbers in grep?

I have file like this : other lines . . . blah blah blah (:34) I wish to find the occurrence of numbers in the above file. I came up with : grep [0-9] filename But that is printing the ...
0
votes
1answer
391 views

Attempting to GREP details of a Java error

I'm running Ubuntu 11 and I'm having some issues with grep. I have a shell script (see below) which essentially checks if a certain Java program of mine is running, if not it runs it. That part works ...
2
votes
1answer
488 views

How do I parse emails with Mutt?

How would I go about parsing new message subject lines non-interactively using Mutt? Mutt is already configured and fetches mail from our Exchange server. What I'd like is for an action to be ...