Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Complicated SED search required Post 302371478 by Scrutinizer on Sunday 15th of November 2009 04:46:50 AM
Old 11-15-2009
Hi Ahmad, scottn's code works well. In your example you left out the double quotes after the second DESCRIPTION, which are part of the format.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help in sed required.

Hi All, I am facing a small problem in sed. I want to insert a line in the existing file. Existing code: access to attr=userPassword by self write by * auth access to * by self write by users read by anonymous auth Desired code: access to attr=userPassword by self... (14 Replies)
Discussion started by: nua7
14 Replies

2. Shell Programming and Scripting

complicated search within file

Hi, I have following problem. I have a file with time stamps and some data describing what happened between time stamps. Something like this: 10:00 meeting with K meeting with L 11:00 lunch 12:00 work with K 13:00 From this file I have to get a file with... (7 Replies)
Discussion started by: mmike
7 Replies

3. Shell Programming and Scripting

Script Search replace - complicated

I have a text file for which i need a script which does some fancy search and replace. Basically i want to loop through each line, if i find an occurance of certain string format then i want to carry on search on replace another line, once i replaced this line i will contine to search for the... (7 Replies)
Discussion started by: kelseyh
7 Replies

4. Shell Programming and Scripting

Search complicated strings on file

Can someone help me? I been figuring out how I can search and extract a complicated search string from a file. The whole string is delimited by a period. And the file where I'm searching is composed of differnt string such as that. For example, I have this search string: and I have a file... (3 Replies)
Discussion started by: Orbix
3 Replies

5. Shell Programming and Scripting

Parsing complicated CSV file with sed

Yes, there is a great doc out there that discusses parsing csv files with sed, and this topic has been covered before but not enough to answer my question (unix.com forums). I'm trying to parse a CSV file that has optional quotes like the following: "Apple","Apples, are fun",3.60,4.4,"I... (3 Replies)
Discussion started by: analog999
3 Replies

6. Shell Programming and Scripting

sed help required

Hi All, I have one file with below type of data in it, $ cat test.txt ###123 ###xyxytuerwb ###2 ###tyupe Here I would like to replace all the characters with "x" after the 3 "###" with the same number of characters. Can you please help me to achieve this. (7 Replies)
Discussion started by: gr8_usk
7 Replies

7. Shell Programming and Scripting

sed with complicated variable pattern

Hi, Below is the content of the file how it looks: # EMAIL #export BMS_EMAIL_ENABLED=true export BMS_EMAIL_ENABLED=false #export BMS_EMAIL_SERVER=esasmtp01.kohls.com export BMS_EMAIL_SERVER=esasmtp01.kohls.com.SMTP_SERVICE export BMS_EMAIL_FROM_ADDRESS=ec_notify@kohlsectest.com export... (4 Replies)
Discussion started by: pravintse
4 Replies

8. Shell Programming and Scripting

sed help - search/copy from one file and search/paste to another

I am a newbie and would like some help with the following - Trying to search fileA for a string similar to - AS11000022010 30.4 31.7 43.7 53.8 60.5 71.1 75.2 74.7 66.9 56.6 42.7 32.5 53.3 I then want to replace that string with a string from fileB - ... (5 Replies)
Discussion started by: ncwxpanther
5 Replies

9. UNIX for Beginners Questions & Answers

How to search a text in file and retrieve required lines following it with UNIX command?

I have requirement to search for a text in the file and retrieve required lines that is user defined with unix command. Eg: Find the text UNIX in the below file and need to return Test 8 & Test 9 Test 1 Test 2 Test 3 Test 4 UNIX Test 5 Test 6 Test 7 Test 8 Test 9 Result can... (8 Replies)
Discussion started by: Arunkumarsak4
8 Replies

10. UNIX for Beginners Questions & Answers

Assistance required to decode sed search using /1

Hi, I am trying to extract line number (first number), as well as everything from TSVal onwards. 4 1.474005 172.18.124.142 -> 74.125.228.46 TCP 2450940617 74 44021 > https Seq=0 Win=5840 Len=0 MSS=1380 SACK_PERM=1 TSval=2450940617 TSecr=0 WS=64 6 1.488149 172.18.124.142 ->... (1 Reply)
Discussion started by: sand1234
1 Replies
SNMP.CONF(5)							     Net-SNMP							      SNMP.CONF(5)

NAME
/usr/share/snmp/snmp.conf - configuration file for the Net-SNMP applications. ~/.snmp/snmp.conf - personal configuration file. DESCRIPTION
snmp.conf is the configuration file which define how the Net-SNMP applications operate. Tokens that can be put in them are described in the DIRECTIVES section below. PLEASE READ FIRST
Make sure you make these files readable only by the user if you are storing sensitive information in them like passphrases! First, make sure you have read the snmp_config(5) manual page that describes how the Net-SNMP configuration files operate, where they are located and how they all work together. DIRECTIVES
mibdirs (mib-dirs|+mib-dirs) Look for textual MIBs to parse in the list of ':' separated directories. If the directive value starts with a '+' it prepends this list to the front of the default directory list compiled into the application. Note that this value can be overridden by the MIB- DIRS environment variable. mibs (mib-tokens|+mib-tokens) Specifies a ':' separated list of MIB tokens that represent textual MIB files that should be found and parsed. If the directive value starts with a '+' it prepends this list to the front of the default MIB token list compiled into the application. The special keyword of "ALL" forces all MIBs files found to be read. Note that the value specified here can be overridden by the MIBS environ- ment variable. mibfile file Specifies a textual MIB file to read and parse, in addition to the list read from the MIBs token. Note that the value specified here can be overridden by the MIBFILES environment variable. defaultPort port The default port number that all SNMP applications and daemons should use. defVersion (v1|v2c|v3) The default SNMP version to use. defCommunity string The default SNMPv1 and SNMPv2c community string to use. defSecurityName string The default SNMPv3 USM security name you want to use for SNMPv3 requests. defContext string The default SNMPv3 context name you want to use. defPassphrase string defAuthPassphrase string defPrivPassphrase string The default SNMPv3 USM passphrase(s) to use. defPassphrase will be used for both authentication and privacy pass phrases if it is specified. defAuthType MD5|SHA The SNMPv3 USM authentication type to use. defPrivType DES The SNMPv3 USM privacy type to use. Currently, DES is the only possible value. defSecurityLevel noAuthNoPriv|authNoPriv|authPriv The SNMPv3 default security level to use. showMibErrors (1|yes|true|0|no|false) Whether or not to display textual MIB parsing errors when commands are run. strictCommentTerm (1|yes|true|0|no|false) Whether or not MIBs that are parsed should be strict about comment termination. "--" terminates a comment if this is true. Many MIBs have broken comments in them, hence this option. mibAllowUnderline (1|yes|true|0|no|false) Allow underline characters in MIBs (illegal). mibWarningLevel integerValue The minimum warning level of the warnings printed by the MIB parser. logTimestamp (1|yes|true|0|no|false) Whether the commands should log timestamps with their error/message logging or not. Note that output will not look as pretty with timestamps if the source code that is doing the logging does incremental logging of messages that are not line buffered before being passed to the logging routines. printNumericEnums (1|yes|true|0|no|false) Equivalent to -Oe. printNumericOids (1|yes|true|0|no|false) Equivalent to -On. dontBreakdownOids (1|yes|true|0|no|false) Equivalent to -Ob. escapeQuotes (1|yes|true|0|no|false) Equivalent to -OE. quickPrinting (1|yes|true|0|no|false) Equivalent to -Oq. printHexText (1|yes|true|0|no|false) Equivalent to -OT. suffixPrinting (0|1|2) If the value is 1, its equivalent to -Os and if the value is 2 it's equivalent to -OS. extendedIndex (1|yes|true|0|no|false) Equivalent to -OX. noRangeCheck (1|yes|true|0|no|false) Disables the validation of values that is done by snmpset before issuing the request to the agent. dumpPacket (1|yes|true|0|no|false) Whether the commands should dump packets by default. doDebugging (1|0) Turns on debugging for all applications run if set to 1. debugTokens TOKEN[,TOKEN...] The debugging tokens that should be printed. See the snmpcmd(1) manual page for debugging usage details. SEE ALSO
snmp_config(5), read_config(3), snmpcmd(1). 4th Berkeley Distribution 08 Feb 2002 SNMP.CONF(5)
All times are GMT -4. The time now is 05:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy