Hi All,
I need to select only those records having a non zero record in the first column of a comma delimited file.
Suppose my input file is having data like:
"0","01/08/2005 07:11:15",1,1,"Created",,"01/08/2005"
"0","01/08/2005 07:12:40",1,1,"Created",,"01/08/2005"... (2 Replies)
I'll try explain this as best I can. Let me know if it is not clear.
I have large text files that contain data as such:
143593502 09-08-20 09:02:13 xxxxxxxxxxx xxxxxxxxxxx 09-08-20 09:02:11 N line 1 test
line 2 test
line 3 test
143593503 09-08-20 09:02:13... (3 Replies)
Hi all!
A bit of background: I am trying to create a script that formats SQL statements. I have gotten so far as to add new lines based on certain match criteria like commas, keywords etc. In the process, I end up adding newlines where I don't want.
For example: substr(colName, 1, 10)... (3 Replies)
Hello,
Need help with following scenario.
A file contains following text:
{beginning of file}
New: This is a new record and it is not
on same line. Since I have lost touch with script
take this challenge and bring all this in one line.
New: Hello losttouch. You seem to be struggling... (4 Replies)
Hi,
I would like to know how can I select lines of one file based on a common ID column from another file (keeping the order of the second file).
Example of file1:
ID A B C D
1-30 1 2 3
5-60 4 5 6
1-20 7 8 9
Example of file2:
ID chr pos
1-20 1 20
1-30 1 30
5-60 5 60
Desired... (2 Replies)
I have a file.....
xxx 2345 455
abc 345 555
cdf 456 777
fff 555 888
Now my requirement is, Say if, i want to select only those records prior to the record fff 555 888...
how do i go about doing this in unix....
The fff would be hardcoded as it wud be fixed and everytime when i... (7 Replies)
Hello,
I use UBUNTU 12.04.
I want to write a short program using awk to select some lines in a file based on a second file.
My first file has this format with about 400,000 lines and 47 fields:
SNP1 1 12.1
SNP2 1 13.2
SNP3 1 45.2
SNP4 1 23.4
My second file has this format:
SNP2
SNP3... (1 Reply)
Hi All,
I have following input file. I wish to retain those lines which match multiple search criteria. The search criteria is stored in a variable seperated from each other by comma(,).
SEARCH_CRITERIA = "REJECT, DUPLICATE"
Input File:
ERROR,MYFILE_20130214_11387,9,37.75... (3 Replies)
Hello,
I have two files of the following form. I would like to remove from File.A where the first three colum matches values in File.B to give the output in File.C
File.A
121 54321 PQR CAT
122 765431 ABC DOG
124 98765 ZXY TIGER
125 86432 GEF LION
File.B
122 765431 ABC
125 86432 GEF... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
LEARN ABOUT REDHAT
bgpd
BGPD(8) Version 0.88 BGPD(8)NAME
bgpd - a BGPv4, BGPv4+, BGPv4- routing engine for use with Zebra
SYNOPSIS
bgpd [ -dhpPv ] [ -f config-file ] [ -i pid-file ] [ -p bgp-port-number ] [ --bgp_port=port-number ] [ -P vty-port-number ]
DESCRIPTION
bgpd is a routing component that works with the zebra routing engine.
OPTIONS -d, --daemon
Runs in daemon mode, forking and exiting from tty.
-f, --config-file config-file
Specifies the config file to use for startup. If not specified this option will likely default to /usr/local/etc/bgpd.conf.
-h, --help
A brief message.
-i, --pid_file pid-file
When bgpd starts its process idenifier is written to pid-file. The init system uses the recorded PID to stop or restart bgpd. The
likely default is /var/run/bgpd.pid.
-p, --bgp_port=port
Set the port that bgpd will listen to for bgp data.
-P, --vty_port port-number
Specify the port that the bgpd VTY will listen on. This defaults to 2605, as specified in /etc/services.
-r, --retain
When the program terminates, retain routes added by bgpd.
-v, --version
Print the version and exit.
COMMANDS
router zebra -- (Move routes into kernel table)
router bgp [AS-NUMBER]
bgp router-id [BGP-ROUTER-ID]
network [NETWORK] area [BGP-AREA-ID]
no network [NETWORK]
aggregate-address [NETWORK]
neighbor [PEER-IP-ADDRESS] remote-as [REMOTE-AS]
neighbor [PEER-IP-ADDRESS] version [ 4 | 4+ | 4- ]
neighbor [PEER-IP-ADDRESS] description
no neighbor [PEER-IP-ADDRESS] description
neighbor [PEER-IP-ADDRESS] route-map [in | out]
neighbor [PEER-IP-ADDRESS] distribute-list [in | out]
neighbor [PEER-IP-ADDRESS] next-hop-self
neighbor [PEER-IP-ADDRESS] weight [WEIGHT]
neighbor [PEER-IP-ADDRESS] default-originate
neighbor [PEER-IP-ADDRESS] ebgp-multihop
neighbor [PEER-IP-ADDRESS] shutdown
no neighbor [PEER-IP-ADDRESS] shutdown
clear ip bgp [PEER-IP-ADDRESS]
show ip bgp [NETWORK]
show ip bgp reg-exp [AS-REGEXP]
show ip bgp summary
show ip bgp neighbor [PEER-IP-ADDRESS]
show ip bgp route
show debug
debug bgp
debug event
debug update
debug keepalive
no debug event
no debug update
no debug keepalive
FILES
/usr/local/sbin/bgpd
The default location of the bgpd binary.
/usr/local/etc/bgpd.conf
The default location of the bgpd config file.
$(PWD)/bgpd.log
If the bgpd process is config'd to output logs to a file, then you will find this file in the directory where you started bgpd.
WARNING
This man page is intended as a quick reference for command line options, and for config file commands. The definitive document is the Info
file zebra.
DIAGNOSTICS
The bgpd process may log to standard output, to a VTY, to a log file, or through syslog to the system logs. bgpd supports many debugging
options, see the Info file, or the source for details.
SEE ALSO
References to other related man pages:
ripd(8), ripngd(8), ospfd(8), ospf6d(8), zebra(8), vtysh(1)BUGS
bgpd eats bugs for breakfast. If you have food for the maintainers try <bug-zebra@gnu.org>
AUTHOR [S]
See <www.zebra.org>, or the Info file for an accurate list of authors.
Zebra Beast - BGPD July 2000 BGPD(8)