where the -6 means the 6th line. This will show us what the 6th line contains.
This is the file contents :
------------------------
package com.att.iom; line 1
[space][space]package com.att.iom; line 2
[space] package com.att.iom; line 3
[space][space][space][space] package com.att.iom; line 4
something package com.att.iom;..... ##but I don't need this line line 5
[tab][tab]package com.att.iom; line 6 Here No space at begining of the line
something something package com.att.iom;##but I don't need this line line 7
package com.att.iom; line8
------------------------
how to grep the pattern ?
How can I grep or find the pattern from this files in the directory. I have couple of ascii files too.I have to grep the binary files.Please assist me
Thanks
Francis (2 Replies)
-Hi
I have a file with the following entries:
tschkback12
tschkback11
tschkback15
tschkback28
....etc.
I need to grep all the lines out of this file which end with the number (just "tschkback" should be excluded). Can it be done with one line command? Thanks -A (5 Replies)
Hi,
When we have a failure, sometimes we just step restart the job from the next step. Later when we open the log for analysis of the failure, it is becoming difficult to go to the failure part.
For eg., if it is a 1000 line log, the failure may be at 500th line. so wat i want to do is, grep... (6 Replies)
I have to search from millions of lines of code of lines having following pattern:
get_token , get_token
For example:
fn1(string.get_token(), string1.get_token());
Thanks in advance (5 Replies)
Hi,
I have got the below requirement. please suggest.
I have a file like,
Processing Item is:
/data/ing/cfg2/abc.txt
/data/ing/cfg3/bgc.txt
Processing Item is:
/data/cmd/for2/ght.txt
/data/kernal/config.klgt.txt
I want to process the above file to get the output file like,
... (5 Replies)
Hi ,
I have a file where i have modifed certain things compared to original file . The difference of the original file and modified file is as follows.
# diff mir_lex.c.modified mir_lex.c.orig
3209c3209
< if(yy_current_buffer -> yy_is_our_buffer == 0) {
---
>... (5 Replies)
Hi All,
I am trying to fetch lines before a pattern, I got to know about -B flag in grep but we have to pass the number to get those lines before some pattern say (X), now what if I want to get line/s with some other pattern say (Y) before X pattern? How to get about it? please help.
Input:... (5 Replies)
Hi all!
Thanks for taking the time to view this!
I want to grep out all lines of a file that starts with pattern 1 but also does not match with the second pattern.
Example:
Drink a soda
Eat a banana
Eat multiple bananas
Drink an apple juice
Eat an apple
Eat multiple apples
I... (8 Replies)
I have this fileA
TEST FILE ABC
this file contains ABC;
TEST FILE DGHT this file contains DGHT;
TEST FILE 123
this file contains ABC,
this file contains DEF,
this file contains XYZ,
this file contains KLM
;
I want to have a fileZ that has only (begin search pattern for will be... (2 Replies)
Discussion started by: vbabz
2 Replies
LEARN ABOUT PLAN9
ndb
NDB(6) Games Manual NDB(6)NAME
ndb - Network database
DESCRIPTION
The network database consists of files describing machines known to the local installation and machines known publicly. The files comprise
multi-line tuples made up of attribute/value pairs of the form attr=value or sometimes just attr. Each line starting without white space
starts a new tuple. Lines starting with # are comments.
The file /lib/ndb/local is the root of the database. Other files are included in the database if a tuple with an attribute-value pair of
attribute database and no value exists in /lib/ndb/local. Within the database tuple, each tuple with attribute file identifies a file to
be included in the database. The files are searched in the order they appear. For example:
database=
file=/lib/ndb/common
file=/lib/ndb/local
file=/lib/ndb/global
declares the database to be composed of the three files /lib/ndb/common, /lib/ndb/local, and /lib/ndb/global. By default, /lib/ndb/local
is searched before the others. However, /lib/ndb/local may be included in the database to redefine its ordering.
Within tuples, pairs on the same line bind tighter than pairs on different lines.
The program ndb/cs (see ndb(8)) and the library routine ipinfo (see ndb(2)) perform searches for information relative to a particular host.
Ndb/cs resolves meta-addresses of the form $attribute by returning the value from the attribute=value most closely related to the resolving
host. The attribute-value pair comes from the tuple for the system, its subnet, or its network with the system tuple having precedence,
subnet next, and network last.
A number of attributes are meaningful to programs and thus reserved. They are:
sys system name
dom Internet domain name
ip Internet address
ether Ethernet address
dk Datakit address
bootf file to download for initial bootstrap
ipnet Internet network name
ipmask Internet network mask
ipgw Internet gateway
auth authentication server to be used
fs file server to be used
tcp a TCP service name
udp a UDP service name
il an IL service name
port a TCP, UDP, or IL port number
restricted
a TCP service that can be called only by ports numbered less that 1024
proto a protocol supported by a host. The pair proto=il is needed by cs (see ndb(8)) in tuples for hosts that support the IL protocol.
9P parameters for the 9P file protocol, in particular whether the server authenticates (9P=auth).
The file /lib/ndb/auth is used during authentication to decide who has the power to `speak for' other users; see auth(6).
EXAMPLES
A tuple for the CPU server, spindle.
sys = spindle
dom=spindle.research.att.com
bootf=/mips/9powerboot
ip=135.104.117.32 ether=080069020677
dk=nj/astro/spindle
proto=il
Entries for the network mh-astro-net and its subnets.
ipnet=mh-astro-net ip=135.104.0.0 ipmask=255.255.255.0
fs=bootes.research.att.com
ipgw=r70.research.att.com
auth=p9auth.research.att.com
ipnet=unix-room ip=135.104.117.0
ipgw=135.104.117.1
ipnet=third-floor ip=135.104.51.0
ipgw=135.104.51.1
Mappings between TCP service names and port numbers.
tcp=sysmon port=401
tcp=rexec port=512 restricted
tcp=9fs port=564
FILES
/lib/ndb/local
first database file searched
/lib/ndb/global
second database file searched
SEE ALSO dial(2), ndb(2), ndb(8), bootp(8), ipconfig(8), con(1)NDB(6)