Sponsored Content
Operating Systems Solaris Keyword search input from a file Post 302592518 by pointers on Tuesday 24th of January 2012 05:54:41 AM
Old 01-24-2012
Keyword search input from a file

Hi,

I have a file which got only one column and got some keywords. I have another file where the keywords used in the first file are repeated in the second file.
Now I would like to know how many times each keyword from the first file is repeated in the second file.

Request your help on this.

Thanks in advance.

Regards,
Pointers
 

10 More Discussions You Might Find Interesting

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

2. Shell Programming and Scripting

how to search a keyword within a file using a for loop

hi guys i have a problem here, im trying to stablish a relationship between a text file and an input user for example the script is going to prompt the user for some football team and what the script is going to do is return the colums in which that input is located so far this is what i have ... (6 Replies)
Discussion started by: lucho_1
6 Replies

3. Shell Programming and Scripting

how to search reports with specified keyword in log

Hi, I have a question with sed/awk. When I handle some log files I want to search all reports with specified keyword. For example, in the log below. abcd efg ===start abc e ===end xyz ===start af f ===end nf ga ===start ab ===end (4 Replies)
Discussion started by: danielnpu
4 Replies

4. Shell Programming and Scripting

multiple search keyword in grep

Dear All, I have a file containing info like TID:0903 asdfasldjflsdjf TID:0945 hjhjhkhkhkh TID:2045 hjhjhkhkhkh TID:1945 hjhjhkhkhkh TID:2045 hjhjhkhkhkh I need to show only lines containing TID:0903 asdfasldjflsdjf TID:0945 hjhjhkhkhkh TID:2045 hjhjhkhkhkh TID:2045 hjhjhkhkhkh ... (11 Replies)
Discussion started by: saifurshaon
11 Replies

5. Shell Programming and Scripting

Using an input (?) file to search another

I have a file (DCN.txt) that has about 35000 lines. It looks like: 10004470028 10005470984 10006470301 10007474812 .... I have several other files (a11.txt, a12.txt, a12_1.txt, a13.txt, etc. about 70, each 100 mb large) that have history records like so: LINE 10005470984 01/06/2010... (13 Replies)
Discussion started by: oriqin
13 Replies

6. Shell Programming and Scripting

find keyword from file and search in another file

hi dudes; this is my file.txt:20101228-180436_Down a 1 b 2 ... 20101228-190436_Rollback a 1 40 e 3 20 ... 20101228-180436_Down c 2 f 2 c 1 ... and i have a down.txt:a 1 aa 2 30 bb 1 40 b 2 ab 3 10 c 3 cd 4 50 ac 2 20 c 3 ad 1 0 (2 Replies)
Discussion started by: gc_sw
2 Replies

7. Shell Programming and Scripting

Merge of two input file by search

Hi i am running a issue with the way i handel open file in perl i have the following input file <File1> D33963|BNS Default Swap|-261564.923909249| D24484|BNS Default Swap|-53356.6868058492| D24485|BNS Default Swap|-21180.9904679111| D33965|BNS Default Swap|154181.478745804|... (6 Replies)
Discussion started by: kykyboss
6 Replies

8. Shell Programming and Scripting

Shell script to search a keyword in six different servers

Hello, I need a shell script which takes search keyword as input and then searches logs in six different servers and provide me the logs where in it found the keyword. Can anyone help???? (1 Reply)
Discussion started by: tomlui2010
1 Replies

9. Shell Programming and Scripting

Keyword search/replace for two text files?

What is the best way (bash/awk/sed?) to read in two text files and do a keyword search/replace? file1.txt: San Francisco Los Angeles Seattle Dallas file2.txt: I love Los Angeles. Coming to Dallas was the right choice. San Francisco is fun. Go to Seattle in the summer. ... (3 Replies)
Discussion started by: pxalpine
3 Replies

10. Shell Programming and Scripting

Search for a Keyword in file and replace another keyword or add at the end of line

Hi I want to implement something like this: if( keyword1 exists) then check if(keyword2 exists in the same line) then replace keyword 2 with New_Keyword else Add New_Keyword at the end of line end if eg: Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
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)
All times are GMT -4. The time now is 11:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy