Tagged Questions
3
votes
2answers
762 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
204 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 ...
1
vote
1answer
301 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 ...
1
vote
2answers
970 views
How to use text extracted from the “grep” command as an argument in a bash script?
I have a file called "krylov_methods", which has text like this:
cg - preconditioned
cgne - normal equations
nash - cg subject to constraint
stcg - another method for constraints
gmres - ...