Sponsored Content
Top Forums Shell Programming and Scripting Extracting text out of specific lines Post 302307973 by krabu on Thursday 16th of April 2009 06:04:53 PM
Old 04-16-2009
Thanks. I really appreciate your help.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting specific text from a file

Dear All, I have to extract a a few lines from a log file and I know the starting String and end string(WHich is same ). Is there any simplere way using sed - awk. e.g. from the following file -------------------------------------- Some text Date: 21 Oct 2008 Text to be extracted... (8 Replies)
Discussion started by: rahulkav
8 Replies

2. Shell Programming and Scripting

Extracting specific characters from a text file

I'm extremely new to scripting and linux in general, so please bear with me. The class I'm taking gives virtually no instruction at all, and so I'm trying to learn everything off the web. Anyway, I'm trying to extract characters that follow after a specific pattern ( '<B><FONT FACE="Arial">' ) but... (3 Replies)
Discussion started by: livos23
3 Replies

3. Shell Programming and Scripting

Extracting Text Between Two Unique Lines

Hi all! Im trying to extract a portion of text from a file and put it into a new file. I need all the lines between <Placement> and </Placement> including the Placemark lines themselves. Is there a way to extract all instances of these and not just the first one found? I've tried using sed and... (4 Replies)
Discussion started by: Grizzly
4 Replies

4. Shell Programming and Scripting

extracting specific lines from a file

hi all, i searched in unix.com and accquired the following commands for extracting specific lines from a file .. sed -n '16482,16482p' in.sql > out.sql awk 'NR>=10&&NR<=20' in.sql > out.sql.... these commands are working fine if i give the line numbers as such .. but if i pass a... (2 Replies)
Discussion started by: sais
2 Replies

5. Shell Programming and Scripting

extracting specific text from lines

Hello, i've got this output text: and i need it to look something like this: which means that there won't be absolute path of each directory, just it's size and the last word after last '/' in each line, and i also don't need last line '1.7M /tmp' Looks like there is a simple... (5 Replies)
Discussion started by: krater559
5 Replies

6. Shell Programming and Scripting

Extracting specific lines of data from a file and related lines of data based on a grep value range?

Hi, I have one file, say file 1, that has data like below where 19900107 is the date, 19900107 12 144 129 0.7380047 19900108 12 168 129 0.3149017 19900109 12 192 129 3.2766666E-02 ... (3 Replies)
Discussion started by: Wynner
3 Replies

7. Shell Programming and Scripting

Extracting Tag along with specific lines

I have this input file: and the desired output is as follows: Desired Output This is a sample taken from a huge file. Basically, the script should take the tag (TDK11..1>) add everything that has bukle=A until it sees the blank lines. Then takes the next tag (TDK2222>) adds everything that... (4 Replies)
Discussion started by: Ernst
4 Replies

8. UNIX for Dummies Questions & Answers

Filtering data -extracting specific lines

I have a table to data which one of the columns include string of text from within that, I am searching to include few lines but not others for example I want to to include some combination of word address such as (address.| address? |the address | your address) but not (ip address | email... (17 Replies)
Discussion started by: A-V
17 Replies

9. UNIX for Advanced & Expert Users

Extracting specific lines from data file

Hello, Is there a quick awk one-liner for this extraction?: file1 49389 text55 52211 text66 file2 59302 text1 49389 text2 85939 text3 52211 text4 13948 text5 Desired output 49389 text2 52211 text4 Thanks!! (5 Replies)
Discussion started by: palex
5 Replies

10. UNIX for Dummies Questions & Answers

Extracting data between specific lines, multiple times

I need help extracting specific lines in a text file. The file looks like this: POSITION TOTAL-FORCE (eV/Angst) ----------------------------------------------------------------------------------- 1.86126 1.86973 1.86972 ... (14 Replies)
Discussion started by: captainalright
14 Replies
Qpsmtpd::DSN(3pm)					User Contributed Perl Documentation					 Qpsmtpd::DSN(3pm)

NAME
Qpsmtpd::DSN - Enhanced Mail System Status Codes - RFC 1893 DESCRIPTION
The Qpsmtpd::DSN implements the Enhanced Mail System Status Codes from RFC 1893. USAGE
Any qpsmtpd plugin can access these status codes. All sub routines are used the same way: use Qpsmtpd::DSN; ...; return Qpsmtpd::DSN->relaying_denied(); or return Qpsmtpd::DSN->relaying_denied("Relaying from $ip denied"); or return Qpsmtpd::DSN->relaying_denied(DENY,"Relaying from $ip denied"); If no status message was given, it will use the predefined one from the RFC. If the first argument is numeric, it will use this as a return code, else the default return code is used. See below which default return code is used in the different functions. The first example will return (DENY, "Relaying denied"); the others (DENY, "Relaying from $ip denied"); which will be returned to qpsmtpd. In those sub routines which don't start with addr_, sys_, net_, proto_, media_, sec_ I've added a default message which describes the status better than the RFC message. ADDRESS STATUS
addr_unspecified X.1.0 default: DENYSOFT no_such_user, addr_bad_dest_mbox X.1.1 default: DENY addr_bad_dest_system X.1.2 default: DENY addr_bad_dest_syntax X.1.3 default: DENY addr_dest_ambigous X.1.4 default: DENYSOFT addr_rcpt_ok X.1.5 default: OK addr_mbox_moved X.1.6 default: DENY addr_bad_from_syntax X.1.7 default: DENY addr_bad_from_system X.1.8 default: DENY MAILBOX STATUS
mbox_unspecified X.2.0 default: DENYSOFT mbox_disabled X.2.1 default: DENY ...but RFC says: The mailbox exists, but is not accepting messages. This may be a permanent error if the mailbox will never be re-enabled or a transient error if the mailbox is only temporarily disabled. mbox_full X.2.2 default: DENYSOFT mbox_msg_too_long X.2.3 default: DENY mbox_list_expansion_problem X.2.4 default: DENYSOFT MAIL SYSTEM STATUS
sys_unspecified X.3.0 default: DENYSOFT sys_disk_full X.3.1 default: DENYSOFT sys_not_accepting_mail X.3.2 default: DENYSOFT sys_not_supported X.3.3 default: DENYSOFT Selected features specified for the message are not supported by the destination system. This can occur in gateways when features from one domain cannot be mapped onto the supported feature in another. sys_msg_too_big X.3.4 default DENY NETWORK AND ROUTING STATUS
net_unspecified X.4.0 default: DENYSOFT net_directory_server_failed, temp_resolver_failed X.4.3 default: DENYSOFT net_system_congested X.4.5 default: DENYSOFT net_routing_loop, too_many_hops X.4.6 default: DENY, but RFC says: A routing loop caused the message to be forwarded too many times, either because of incorrect routing tables or a user forwarding loop. This is useful only as a persistent transient error. Why do we want to DENYSOFT something like this? MAIL DELIVERY PROTOCOL STATUS
proto_unspecified X.5.0 default: DENYSOFT proto_invalid_command X.5.1 default: DENY proto_syntax_error X.5.2 default: DENY proto_rcpt_list_too_long, too_many_rcpts X.5.3 default: DENYSOFT proto_invalid_cmd_args X.5.4 default: DENY proto_wrong_version X.5.5 default: DENYSOFT MESSAGE CONTENT OR MESSAGE MEDIA STATUS
media_unspecified X.6.0 default: DENYSOFT media_unsupported X.6.1 default: DENY media_conv_prohibited X.6.2 default: DENY media_conv_unsupported X.6.3 default: DENYSOFT media_conv_lossy X.6.4 default: DENYSOFT SECURITY OR POLICY STATUS
sec_unspecified X.7.0 default: DENYSOFT sec_sender_unauthorized, bad_sender_ip, relaying_denied X.7.1 default: DENY sec_list_dest_prohibited X.7.2 default: DENY sec_conv_failed X.7.3 default: DENY sec_feature_unsupported X.7.4 default: DENY sec_crypto_failure X.7.5 default: DENY sec_crypto_algorithm_unsupported X.7.6 default: DENYSOFT sec_msg_integrity_failure X.7.7 default: DENY perl v5.14.2 2009-04-02 Qpsmtpd::DSN(3pm)
All times are GMT -4. The time now is 07:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy