If the separator is . then the field (#2) ends at the next . or at the end of the line.
You can do an ERE-search:
or limit the search to the beginning of the field
In the latter case I have escaped \| because | is a special ERE character unless at the very beginning or the very end or within [ ].
This User Gave Thanks to MadeInGermany For This Post:
I have two files with multiple columns separated by commas.
I want to search one column from the first file in the second file;
If there is a matching, will append that matched row to the first file. Let me show an example... (unique values in the search column)
First file
aa,reg1,bb,cc,dd,ff... (6 Replies)
I'm racking my brain on this one! :(
I have a list like this:
Paul 20
Paul 25
Paul 30
Frank 10
Julie 15
Julie 13
etc, etc...
I've been trying to figure out a way to have the output display the name in the first column ONCE and add the numbers in the second column and display that... (2 Replies)
Hi All,
I have two files one of which having some mobile numbers and corresponding value whose sample content as follows:
9058629605,8.0
9122828964,30.0
And in second file complete details of all mobile numbers and sample content as follows and delimeter used is comma(,):
... (8 Replies)
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Hi
I have 5 columns like this
a b c d e
f g h i j
k l m n o
From 2nd column till the 5th column of every record, I would like to transpose them as rows, so my output file contains only one row
a
b
c
d
e
f
g
h
i
j (9 Replies)
Hi,
Please excuse me , i have searched unix forum, i am unable to find what i expect ,
my query is , i have 2 files of same structure and having 1 similar field/column , i need to merge 2 tables/files based on the one matched field/column (that is field 1),
file 1:... (5 Replies)
I have file that looks like this,
DIP-17571N|refseq:NP_651151 DIP-17460N|refseq:NP_511165|uniprotkb:P45890 DIP-17571N|refseq:NP_651151
DIP-19241N|refseq:NP_524261 DIP-19241N|refseq:NP_524261 DIP-17151N|refseq:NP_524316|uniprotkb:O16797
DIP-19588N|refseq:NP_731165 ... (2 Replies)
Discussion started by: Syeda Sumayya
2 Replies
LEARN ABOUT PLAN9
whois.conf
WHOIS.CONF(5) Debian GNU/Linux WHOIS.CONF(5)NAME
whois.conf - alternative WHOIS servers list for whois client
SYNOPSIS
/etc/whois.conf
DESCRIPTION
This file contains a list of WHOIS servers which can augment or override the built-in list of the client.
It's a plain text file in ASCII encoding. Each line consists of two fields: a pattern to match WHOIS object identifier and a corresponding
WHOIS server domain name.
Fields are separated by non-empty sequence of space or a tabular characters. A line starting with a hash character is a free comment and
it's not considered.
The pattern is case-insensitive extended regular expression if whois client has been compiled with POSIX regular expressions support. Oth-
erwise, simple case-insensitive suffix comparison against WHOIS object identifier is used.
Internationalized domain names (IDN) must be specified in ascii-compatible encoding (ACE) format.
EXAMPLE
.nz$ nz.whois-servers.net
# Hangul Korean TLD
.xn--3e0b707e$ whois.kr
# Private ASNs
^as645(1[2-9]|2[0-9]|3[0-4])$ whois.example.net
FILES
/etc/whois.conf
SEE ALSO whois(1)AUTHOR
This manual page was written by Petr Pisa <ppisar@redhat.com> and is licensed under the terms of the GNU General Public License, version 2
or higher.
Petr Pisa 9 April 2013 WHOIS.CONF(5)