02-15-2012
grep command for email
May I know what is the command-line instruction to show all the subjects and authors of my emails contained in a directory by using egrep? Thanks!
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am doing "ps -f" to see my process.
but I get lines that one of it represents the ps command itself.
I want to grep it out using -v flag, but than I get another process that belongs to the GREP itself :
I would like to exclude
# ps -f
UID PID PPID C STIME TTY TIME CMD... (2 Replies)
Discussion started by: yamsin789
2 Replies
2. Gentoo
I am profoundly new to *nix, but had a project dropped in my lap that has sparked an interest, leading me here.
I was tasked with daily sending one of our customers a listing of all the spam our filter blocked that was heading for them.
Between Google and I;
I discovered the Server is running... (3 Replies)
Discussion started by: GrendelPrime
3 Replies
3. Shell Programming and Scripting
Hello All,
I want to make a script which reads a files after every one hour and grep a pariticular word on it and if it finds it than email me on my email address. Please tell me how i start and if there is some example
available then please tell me the link.
One thing more that for the... (7 Replies)
Discussion started by: wakhan
7 Replies
4. Shell Programming and Scripting
running a suse linux 10.
I'm trying to write a script that searches for a file with certain name and that has been modified less than 30 minutes ago, then search for a certain string in that file and email this string out. I have tried different combinations of find, grep and email but no luck... (7 Replies)
Discussion started by: basisvasis
7 Replies
5. Shell Programming and Scripting
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)
Discussion started by: aintour
2 Replies
6. Shell Programming and Scripting
Removed (15 Replies)
Discussion started by: saisneha
15 Replies
7. Shell Programming and Scripting
This is my first time writing a script and Im having some trouble,
Im trying to use the top command to monitor processes and the amount of CPU usage they require, my aim is to get an email if a process takes over a certain percentage of CPU usage
I tried grep
Obviosly that hasnt worked,
Any... (8 Replies)
Discussion started by: jay02
8 Replies
8. Shell Programming and Scripting
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Discussion started by: Pushpraj
10 Replies
9. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Let's say if we have a file with a lot of information.
For example:
iiadam
otterhedgehog
kayleigh... (2 Replies)
Discussion started by: ForeignGuy
2 Replies
10. UNIX for Beginners Questions & Answers
MyLOG:
2017/11/12 17:01:54.600 : Error: LPID: 3104680848 WRONG CRITERIA FOUND. tRealBuilder::Generate
Output Required:
If Ke word "WRONG CRITERIA FOUND" in latest log ( logs are regularly generating - real time) mail to us
once mailed wait for 2 hours for second mail.
mail subject... (3 Replies)
Discussion started by: vivekn
3 Replies
LEARN ABOUT DEBIAN
mtnopt
MTNOPT(1) monotone MTNOPT(1)
NAME
mtnopt - generate shell variables from monotone workspace options
SYNOPSIS
mtnopt [-s|-c|-v] [-d dir] [-k keys]
mtnopt -h
DESCRIPTION
mtnopt prints shell variable assignments for each value in the file of monotone workspace options, _MTN/options, in the current directory.
For instance, if _MTN/options contained this text:
database "/home/user/src/monotone.mtn"
branch "net.venge.monotone"
keydir "/home/user/.monotone/keys"
mtnopt would print:
MTN_database="/home/user/src/monotone.mtn";
MTN_branch="net.venge.monotone";
MTN_keydir="/home/user/.monotone/keys";
By default, mtnopt attempts to guess appropriate syntax from the value of the SHELL environment variable. This can be overridden with the
-s and -c command-line options.
OPTIONS
-s Print variable assignments in sh(1) syntax.
-c Print variable assignments in csh(1) syntax.
-v Print only the values, with no indication of the corresponding option keys.
-d directory
Look for _MTN/options in directory, rather than in the current directory.
-k keys
Print assignments for only those options that match the egrep(1) regular expression keys.
-h Print a help message and exit.
BUGS
mtnopt only looks in the current directory for the _MTN directory, so it will fail in a subdirectory of a workspace.
mtnopt should be aware of the set of possible options, rather than blindly printing whatever is in _MTN/options.
The behavior when there is no _MTN/options file to be found is less than helpful.
SEE ALSO
mtn(1), egrep(1), sh(1), csh(1)
monotone 2011-02-22 MTNOPT(1)