You may pimp up your own approach by adding an address specification. Be aware that it will NOT change the third field if that doesn't contain 165, or change any other field that holds that value.
EDIT: If you want to replace field 3 regardless of its contents, try
P.S.: you might want to adapt the title of your thread.
Match column 3 in file1 to column 1 in file 2 and replace with column 2 from file2
file 1 sample
SNDK 80004C101 AT
XLNX 983919101 BB
NETL 64118B100 BS
AMD 007903107 CC
KLAC 482480100 DC
TER 880770102 KATS
ATHR 04743P108 KATS... (7 Replies)
Hi All,
I have a file with data as below:
A,FILE1_MYFILE_20130309_1038,80,25.60
B,FILE1_MYFILE_20130309_1038,24290,18543.38
C,FILE1_dsc_dlk_MYFILE_20130309_1038,3,10.10
A,FILE2_MYFILE_20130310_1039,85,110.10
B,FILE2_MYFILE_20130310_1039,10,12.10... (10 Replies)
Hi all I have a need of searching some pattern in file by month and then count unique records
D11
G11
R11 -------> Pattern available in file
S11
Jan$1 to $5 column contains some records in which I want to find unique
for this purpose I have written script like below
awk '/Jan/ ||... (4 Replies)
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Hi All,
I have a requirement where I need to find sum of values from column D through O present in a CSV file and check whether the sum of each Individual column matches with the value present for that corresponding column present in the trailer record.
For example, let's assume for column D... (9 Replies)
file:
1|12322|tow|
5|23422|pow|
6|23423|cow|
3|34324|how|
deletelines:
12322
23423
My command to delete line
while read NUM
do
awk -F"\|" '$2 !~ /`"$NUM"`/' file >file.back
mv file.back file
done<deletelines (3 Replies)
Hi all,
I have searched and searched, but I have not found a solution that quite fits what I am trying to do.
I have a long list of data in three columns. Below is a sample:
1,10,8
2,12,10
3,13,12
4,14,14
5,15,16
6,16,18
Please use code tags
What I need to do is as follows: If a... (4 Replies)
Discussion started by: bleedingturnip
4 Replies
LEARN ABOUT REDHAT
smtp
smtp(n) smtp client smtp(n)
NAME
smtp - Client-side tcl implementation of the smtp protocol
SYNOPSIS
package require Tcl
package require mime ?1.3.2?
package require smtp ?1.3.2?
::smtp::sendmessage token option...
DESCRIPTION
The smtp library package provides the client side of the smtp protocol.
::smtp::sendmessage token option...
This command sends the MIME part (see package mime) represented by token to an SMTP server. options is a list of options and their
associated values. The recognized options are:
-servers
A list of SMTP servers. The default is localhost.
-ports A list of SMTP ports. The default is 25.
-queue Indicates that the SMTP server should be asked to queue the message for later processing. A boolean value.
-atleastone
Indicates that the SMTP server must find at least one recipient acceptable for the message to be sent. A boolean value.
-originator
A string containing an 822-style address specification. If present the header isn't examined for an originator address.
-recipients
A string containing one or more 822-style address specifications. If present the header isn't examined for recipient
addresses). If the string contains more than one address they will be separated by commas.
-header
A list of keywords and their values (may occur zero or more times).
If the -originator option is not present, the originator address is taken from From (or Resent-From); similarly, if the -recipients option
is not present, recipient addresses are taken from To, cc, and Bcc (or Resent-To, and so on). Note that the header key/values supplied by
the -header option (not those present in the MIME part) are consulted. Regardless, header key/values are added to the outgoing message as
necessary to ensure that a valid 822-style message is sent.
The command returns a list indicating which recipients were unacceptable to the SMTP server. Each element of the list is another list, con-
taining the address, an SMTP error code, and a textual diagnostic. Depending on the -atleastone option and the intended recipients, a non-
empty list may still indicate that the message was accepted by the server.
SEE ALSO
mime, pop3, ftp, http
KEYWORDS
mail, mail, email, smtp, mime, rfc821, rfc822, internet, net
mime 1.3.2 smtp(n)