Sponsored Content
Top Forums Shell Programming and Scripting egrep -i "(from|to)=<$1>" mail.log ? Post 302634993 by balajesuri on Friday 4th of May 2012 05:13:24 AM
Old 05-04-2012
Please post few lines from mail.log and the desired output. You'll receive quicker responses.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

search ")" with egrep - egrep: syntax error

Hi Guys, we have a shell script which basically query the Database which retrieves huge data and use the data with "egrep" . Now there is some data which contains characters like "abc)" and the same is used like below : "egrep (.+\|GDPRAB16\|GDPR/11702 96 abc)\|$ temp.txt" now while... (7 Replies)
Discussion started by: sagarjani
7 Replies

2. UNIX for Dummies Questions & Answers

How to use the "grep/egrep" command to search files.

Hi Team, I am new to this forum and also trying to learn Unix. I will highly appriciate your help if you can help me to get the right command . {{{ I use the command " today | egrep '(10:| 11: )' | grep ERROR " to grep all the files that has been error betweeen 10 to 11... (6 Replies)
Discussion started by: rkhanal
6 Replies

3. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

4. AIX

echo $varibla | mail -s "subject" "xxx@xxx.com" not ruuning as expected

Hi Folks, As per the subject, the following command is not working as expected. echo $variable | mail -s "subject" "xxx@xxx.com" Could anyone figure it out whats wrong with this. I am using AIX box. Regards, (2 Replies)
Discussion started by: gjarms
2 Replies

5. Shell Programming and Scripting

Escaping backslash and asterisk in egrep to match "\*"

So far what i've got is egrep '^(\\)\*$'No luck. I've searched the web and not much luck. I know about the escape character \ but its confusing to figure out how to use it to match a backslash and use it to escape the asterisk also. Any ides? Thanks! (8 Replies)
Discussion started by: matthewfs
8 Replies

6. UNIX for Dummies Questions & Answers

Egrep confusion with "I" and "-I" pattern

I am executing following command egrep -w I filename.txt the filename.txt has following data .... -I 07-18 08:31:19.924 9880 6 SessionManager ConnectConfig: ConfigurationWebService LoginResults=SuccessfulLogin I am so hungry that I need to eat I expect egrep to print only the second... (1 Reply)
Discussion started by: VBG
1 Replies

7. Shell Programming and Scripting

How to find a file which are not ends with ".zip" and which are ends with "*.log*" or "*.out*"?

I am new to bash/shell scripting. I want to find all the files in directory and subdirectories, which are not ends with “.zip” and which are contains in the file name “*.log*” or “*.out*”. I know below command to get the files which ends with “.log”; but I need which are not ends with this... (4 Replies)
Discussion started by: Mallikgm
4 Replies

8. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

9. Shell Programming and Scripting

Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"

Dear Ladies & Gents, I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out: for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies

10. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
mh-mail(4)						     Kernel Interfaces Manual							mh-mail(4)

NAME
mh-mail - Message format for the MH message system DESCRIPTION
MH processes messages in a particular format. Although neither Bell nor Berkeley mailers produce message files in the format that MH prefers, MH can read message files in that format. Each user has a maildrop that initially receives all messages processed by the post command (see post(8)). The inc command reads from the maildrop and incorporates the new messages found there into the user's own +inbox folder. The maildrop con- sists of one or more messages. Messages are expected to consist of lines of text. Graphics and binary data are not handled. No data compression is accepted. All text is in ASCII 7-bit data. The general memo framework of RFC 822 is used. A message consists of a block of information in a rigid format, followed by general text with no specified format. The rigidly-formatted first part of a message is called the message header; the free-format portion is called the body. The header must always exist, but the body is optional. These parts are separated by a blank line or by a line of dashes. The following example shows the standard default MH mail header: To: cc: Subject: -------- The header is composed of one or more header items. Each header item can be viewed as a single logical line of ASCII characters. If the text of a header item extends across several real lines, the continuation lines are indicated by leading spaces or tabs. Each header item is called a component and is composed of a keyword or name, along with associated text. The keyword begins at the left margin, and is terminated by a colon (:). It cannot contain spaces or tabs, and cannot exceed 63 characters, as specified by RFC 822. The text for most formatted components, such as Date: and Message-Id:, is produced automatically. The user enters address fields such as To: and cc:, and the Subject: field. Internet addresses are assigned mailbox names and host computer specifications. The general format is local@domain, for example, MH@UCI or MH@UCI-ICSA.ARPA. A comma (,) separates multiple addresses. A missing host/domain is assumed to be the local host/domain. A blank line (or a line of dashes) signals that all following text up to the end of the file is the body of the message. No formatting is expected or enforced within the body. The following is a list of header components that are considered meaningful to MH programs: Added by post, contains the date and time of the message's entry into the transport system. Added by post, contains the address of the author or authors (there may be more than one if a Sender: field is present). Replies are typically directed to addresses in the Reply-To: or From: field. The former has precedence, if present. Added by post in the event that the message already has a From: line. This line contains the address of the actual sender. Replies are never sent to addresses in the Sender: field. Contains addresses of primary recipients. Contains addresses of secondary recipients. Contains the addresses of recipients who receive blind carbon copies of the message. The Bcc: line does not appear on the message as sent, so these recipients are not listed. Recipients in the Bcc: field receive a copy of the message with a minimal header. MH uses an encapsulation method for blind copies; see send(1). Causes post to copy the message into the specified folder for the sender, if the message was successfully given to the transport system. A unique message identifier added by post, if the -msgid flag is set. Sender's commentary. It is displayed by scan. A commentary line added by repl when replying to a message. Added by post when a message is redistributed. Added by post when a message is redistributed. New recipients for a message resent by dist. New secondary recipients for a message resent by dist. New blind carbon copy recipients for a message resent by dist. Places a copy of a message resent by dist into the sender's folder. A unique identifier of a message resent by dist. This is appended by post if the -msgid flag is set. Annota- tion added by dist when the -annotate flag is specified. Annotation added by forw when the -annotate flag is specified. Annotation added by repl when the -annotate flag is specified. Specifies the MIME version number. This header entry is used or added by MH software only when codeset conversion of mail messages is enabled and requested. For more information on codeset conversion, see the section on interna- tionalization features in mh(1). Specifies the content type, which is always TEXT/PLAIN, plus a charset value that names a coded character set (codeset). This header entry is used or added by MH software only when codeset conversion of mail messages is enabled and requested. For more information on codeset conversion, see the section on internationalization features in mh(1). FILES
Standard location of mail drop RELATED INFORMATION
Standard for the Format of ARPA Internet Text Messages (RFC 822) delim off mh-mail(4)
All times are GMT -4. The time now is 11:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy