Need some help deleting words from a line which are not my "Keyword"


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need some help deleting words from a line which are not my "Keyword"
# 15  
Old 08-23-2010
If you still need help, please post sample data and an example of the desired output.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Failure: if grep "$Var" "$line" inside while read line loop

Hi everybody, I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o My code: #!/bin/sh set -e set -u export IFS= optl="Optl" LOCSTORCLI="/opt/lsi/storcli/storcli" ($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies

2. 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

3. Shell Programming and Scripting

Find lines with "A" then change "E" to "X" same line

I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
Discussion started by: nightwatchrenba
10 Replies

4. Shell Programming and Scripting

Deleting "user input line number" from a file using sed

Hi I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a sed one liner for the same... I tried sed -i. The interaction would be like this Enter the line... (4 Replies)
Discussion started by: sudeep.id
4 Replies

5. UNIX for Dummies Questions & Answers

Deleting "user input line number" from a file using sed

Hi I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a sed one liner for the same... I tried sed -i. The interaction would be like this Enter the line to... (1 Reply)
Discussion started by: sudeep.id
1 Replies

6. Shell Programming and Scripting

Error for "continue" keyword in Linux script.

Hi All I have a function in a linux script like this clean_up() { db2 -x "UPDATE ${DB_SCHEMA_NAME}.ETL_DAILY SET ETL_STATUS = 'SUCCESSFUL' WHERE PROCESS_DATE = '${INT_RUN_DATE}' AND BATCH_NO = ${CM_BATCH} AND APP_ID = ${APP_ID} AND APP_VERSION = '${APP_VERSION}'" > ${TMPOUT} ... (3 Replies)
Discussion started by: vee_789
3 Replies

7. AIX

"Frames" and "Words" in fcstat output

What are "Frames" and "Words" in the fcstat output? vio1:/home/padmin:# fcstat fcs0 <snip> Transmit Statistics Receive Statistics ------------------- ------------------ Frames: 122844229 363445456 Words: 50940091904 171210861568 <snip> The... (1 Reply)
Discussion started by: kah00na
1 Replies

8. 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

9. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

10. UNIX for Dummies Questions & Answers

grep/cat/more -- search in a txt file and display content from a specific "keyword"

Hi, I have a .txt file Sample: ===================== NEXT HOST ===================== AEADBAS001 ip access-list extended BLA_Incoming_Filter ip access-list extended BLA_Outgoing_Filter access-list 1 permit xxxxxxxxxxxxxx access-list 2 permit xxxxxxxxxxxxxx =====================... (4 Replies)
Discussion started by: I-1
4 Replies
Login or Register to Ask a Question
ip6rtrd.conf(4) 					     Kernel Interfaces Manual						   ip6rtrd.conf(4)

NAME
ip6rtrd.conf - IPv6 router daemon (ip6rtrd) configuration file DESCRIPTION
The ip6rtrd.conf file contains configuration information that is read by the ip6rtrd daemon at initialization time. This file contains statements that control information sent in router advertisements and RIPng messages. The ip6rtrd.conf file consists of structured information for each interface in the following format: interface interface-name { # interface keyword-value pairs, one per line Prefix prefix/length { # prefix keyword-value pairs, one per line } } Comments begin with the number sign (#) and continue to the end of the line. The following table lists the keywords and range of accepted values. See RFC 2461 for complete descriptions of the keywords. --------------------------------------------------------------------- Keyword Values Default --------------------------------------------------------------------- AdvSendAdvertisements yes/no yes MaxRtrAdvInterval 4 - 1800 seconds 600 MinRtrAdvInterval 3 - (0.75 * MaxRtrAdvInterval) 200 AdvManagedFlag 0/1 0 AdvOtherConfigFlag 0/1 0 AdvLinkMTU non-negative integer 0 AdvReachableTime 0 - 3,600,000 milliseconds 0 AdvRetransTimer non-negative integer 0 AdvDefaultLifetime 0 or MaxRtrAdvInterval - 9000 secs 1800 --------------------------------------------------------------------- In addition, the following interface keywords are accepted: The value to be placed in the Cur Hop Limit field in the Router Advertisement messages sent by the router. The value zero means unspecified (by this router). Valid values are any non-negative integer. The default is 0. Sends the interface link-layer address option in outgoing router advertisements. Valid values are yes and no. The default is yes. Enables (yes) or disables (no) participation in RIPng on the interface. If enabled, RIPng updates are sent on the interface, and received RIPng updates are processed as defined in RFC 2080. You cannot specify yes for automatic tunnels (the tun0 interface). The default is yes (except for tun0). Enables (1) or disables (0) the Split Horizon algorithm as specified in RFC 2080. The default is 1. Enables (1) or disables (0) the Poisoned Reverse algorithm as specified in RFC 2080. The default is 1. Address Prefix Information Each address prefix to be configured on the interface must be defined within a prefix block that begins with the keyword Prefix followed by the prefix and length (separated by a slash (/)) and optionally followed by an additional address prefix information block of keyword-value pairs. The following table lists address prefix keywords and values that are described in RFC 2461: ------------------------------------------------- Prefix Keyword Values Default ------------------------------------------------- AdvValidLifetime integer 2592000 seconds AdvPreferredLifetime integer 604800 seconds AdvOnLinkFlag 0/1 1 AdvAutonomousFlag 0/1 1 ------------------------------------------------- The following table lists address prefix keywords and values that are described in RFC 2080: ---------------------------------------------- Prefix Keyword Values Default ---------------------------------------------- RouteMetric 1 - 16 (inclusive) 1 RouteTag integer 0 ---------------------------------------------- In addition, you can specify the following address prefix keywords: The ip6rtrd will configure the advertised prefix on the interface if ConfigureThisPrefix is specified and set to 1, or if ConfigureThisPrefix is not specified and AdvAutonomousFlag is set to 1. The prefix is not auto-configured in all other cases. Valid values are 0 and 1. The default value is the value of AdvAutonomous- Flag. RELATED INFORMATION
Daemons: ip6rtrd(8). RFC 2461, Neighbor Discovery for IP version 6 (IPv6), Narten, T.; Nordmark, E., Simpson W. A., December 1998 RFC 2462, IPv6 Stateless Address Autoconfiguration, Thompson, S.; Narten, T., December 1998 RFC 2080, RIPng for IPv6, Malkin, G., Minnear, R., January 1997. delim off ip6rtrd.conf(4)