Sponsored Content
Top Forums UNIX for Dummies Questions & Answers grep or sed help for a word and an IP address Post 302353063 by sanjay.login on Monday 14th of September 2009 12:08:21 PM
Old 09-14-2009
Received-SPF: pass (google.com: domain of support@uhb-hosting.de designates 80.67.28.12 as permitted sender) client-ip=80.67.28.12;


awk '{print $7,$8}' file_name


hope you wanted this.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to grep for a word and display only the word

Hi, When we "grep" for a word in a file, it returns the lines containing the word that we searched for. Is there a way to display only the words and not the entire line containing them. Thanks Ananth (6 Replies)
Discussion started by: ananthmm
6 Replies

2. UNIX for Dummies Questions & Answers

how to grep the word and display only the second word from it

hi, consider the below line in a text file, 'Y',getdate(),'N','V',NULL ..... 'N',getdate(),'Y','D',NULL ..... 'Y','N','Y',getdate(),'Y','D',NULL .... as u see above, i want only the second word after the getdate() word... getdate() will not come 2nd word alwys it may be any position but i... (11 Replies)
Discussion started by: prsam
11 Replies

3. Shell Programming and Scripting

Grep out specific word and only that word

ok, so this is proving to be kind of difficult even though it should not be. say for instance I want to grep out ONLY the word fkafal from the below output, how do I do it? echo ajfjf fjfjf iafjga fkafal foeref afoafahfia | grep -w "fkafal" If i run the above command, i get back all the... (4 Replies)
Discussion started by: SkySmart
4 Replies

4. Shell Programming and Scripting

How to grep a word and next column to that word?

Hi, I have input file as below. Can you help me? inac_4y;0;2;Balance;200;1;1; 0;2;Balance;100;1; 0;inac_nq;0;1;Balance;100;1 desired output Balance;200 Balance;100 Balance;100 -Suresh Please use and tags when posting code, data or logs etc. to preserve formatting... (5 Replies)
Discussion started by: suresh3566
5 Replies

5. Shell Programming and Scripting

grep part of word or Another word from a string

Hi all, FileOne family balance >>>>> 0 0 0 0 java.io.FileNotFoundException: Settings.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) .. .... ..... ..... java.lang.NullPointerException ... ..... ...... Stacktrace: at... (2 Replies)
Discussion started by: linuxadmin
2 Replies

6. UNIX for Dummies Questions & Answers

How to print line starts with specific word and contains specific word using sed?

Hi, I have gone through may posts and dint find exact solution for my requirement. I have file which consists below data and same file have lot of other data. <MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'> <MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
Discussion started by: tmalik79
11 Replies

7. Shell Programming and Scripting

How ti Grep for a word and print the next word

Hi can we grep for a word and print the next word of the greped word? ex:- create or replace function function_name create function function_name we should search for word "function" and output next word "function_name" from both lines. (3 Replies)
Discussion started by: manasa_vs
3 Replies

8. Shell Programming and Scripting

Need a word which just comes next to after grep of a specific word

Hi, Below is an example : ST1 PREF: int1 AVAIL: int2 ST2 PREF :int1 AVAIL: int2 I need int1 to come in preferred variable while programming and int2 in available variable Please help me doing so Best regards, Vishal (10 Replies)
Discussion started by: Vishal_dba
10 Replies

9. Shell Programming and Scripting

Replacing a particular word with another word in all the xml's under a particular directory with sed

Hi Folks, Could you please advise what will be the SED command to replace a word in all xml's under a particular directory for example let say I rite now at the following below location $ cd /ter/rap/config now under config directory there will be lots of xml file , now my objective is to... (1 Reply)
Discussion started by: punpun66
1 Replies

10. Shell Programming and Scripting

Grep for a word or word with underscore

I have a file "test" with following contents: cat test abc abcd_efg abc_abc I want to only grep for abc or abc_ without getting other results, how do I achieve this? If I use grep -w abc test option I get only abc and not abc_. If I use egrep "abc|abc_" test its still printing... (3 Replies)
Discussion started by: ctrld
3 Replies
SPFD(1) 						User Contributed Perl Documentation						   SPFD(1)

NAME
spfd - simple forking daemon to provide SPF query services VERSION
2006-02-07 SYNOPSIS
spfd --port port [--set-user uid|username] [--set-group gid|groupname] spfd --socket filename [--socket-user uid|username] [--socket-group gid|groupname] [--socket-perms octal-perms] [--set-user uid|username] [--set-group gid|groupname] spfd --help DESCRIPTION
spfd is a simple forking Sender Policy Framework (SPF) query proxy server. spfd receives and answers SPF query requests on a TCP/IP or UNIX domain socket. The --port form listens on a TCP/IP socket on the specified port. The default port is 5970. The --socket form listens on a UNIX domain socket that is created with the specified filename. The socket can be assigned specific user and group ownership with the --socket-user and --socket-group options, and specific filesystem permissions with the --socket-perms option. Generally, spfd can be instructed with the --set-user and --set-group options to drop root privileges and change to another user and group before it starts listening for requests. The --help form prints usage information for spfd. REQUEST
A request consists of a series of lines delimited by x0A (LF) characters (or whatever your system considers a newline). Each line must be of the form key=value, where the following keys are required: ip The sender IP address. sender The envelope sender address (from the SMTP "MAIL FROM" command). helo The envelope sender hostname (from the SMTP "HELO" command). RESPONSE
spfd responds to query requests with similar series of lines of the form key=value. The most important response keys are: result The result of the SPF query: pass The specified IP address is an authorized mailer for the sender domain/address. fail The specified IP address is not an authorized mailer for the sender domain/address. softfail The specified IP address is not an authorized mailer for the sender domain/address, however the domain is still in the process of transitioning to SPF. neutral The sender domain makes no assertion about the status of the IP address. unknown The sender domain has a syntax error in its SPF record. error A temporary DNS error occurred while resolving the sender policy. Try again later. none There is no SPF record for the sender domain. smtp_comment The text that should be included in the receiver's SMTP response. header_comment The text that should be included as a comment in the message's "Received-SPF:" header. spf_record The SPF record of the envelope sender domain. For the description of other response keys see Mail::SPF::Query. For more information on SPF see <http://www.openspf.org>. EXAMPLE
A running spfd could be tested using the "netcat" utility like this: $ echo -e "ip=11.22.33.44 sender=user@pobox.com helo=spammer.example.net " | nc localhost 5970 result=neutral smtp_comment=Please see http://spf.pobox.com/why.html?sender=user%40pobox.com&ip=11.22.33.44&receiver=localhost header_comment=localhost: 11.22.33.44 is neither permitted nor denied by domain of user@pobox.com guess=neutral smtp_guess= header_guess= guess_tf=neutral smtp_tf= header_tf= spf_record=v=spf1 ?all SEE ALSO
Mail::SPF::Query, <http://www.openspf.org> AUTHORS
This version of spfd was written by Meng Weng Wong <mengwong+spf@pobox.com>. Improved argument parsing was added by Julian Mehnle <julian@mehnle.net>. This man-page was written by Julian Mehnle <julian@mehnle.net>. perl v5.18.2 2006-02-06 SPFD(1)
All times are GMT -4. The time now is 03:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy