Hello All,
I have log file the result from a multithreaded process. So when a process finishes it will write to this log file as 123 rows merged.
The issue is sometimes the processess finish at the same time or write to the file at the same time as
123 rows merged.145 rows merged.
At... (5 Replies)
Hi
I have a problem using grep to find a pattern followed by newline.
Here is my file
xxxxxxxxxxxpattern
patternxxxxxx
pattern
xxxpattern
xxpatternx
xxxxxxyyyyxxxx
I want the result to be like this
xxxxxxxxxxxpattern
pattern
xxxpattern
Please help (2 Replies)
How can
grep G.*schema
give me the result: ${Gacntg_dt}""'"'
doesn't G.*schema say give me an unlimited number of characters between G and schema?
:confused: (3 Replies)
Hi,
I'm currently working on a shell script to automate a backup check on oracle database. My requirement is to grep the words between two delimiters and pass on to a variable..
for ex I have following values in my log file...
(DB_NAME), (163.24 25), (16/02/10 23:40), (COMPLETED),
I want... (5 Replies)
Hello everyone. I am new to unix, nice to meet you all.
I have a small problem with a question.
I have to write a command that finds all the postal codes in a txt file. All postal codes will begin on its own line in the txt file.
This is the formal of postal code: "A#A#A#" or "A#A #A#"
A... (3 Replies)
Hi ,
I am having an issue with the Awk script to insert newline for a regular expression match
Having a file like this
FILE1
####################
RXOER , RXERA , RXERC , RXERD
.RXEA(RXBSN), RXERD , REXCD
input RXEGT
buffer RXETRY
#######################
Want to match the RXE... (38 Replies)
Hi
While trying to do a search on solaris, the grep results seems to be appearing on the same line instead of the new line.
Wed Jan 18 14:45:48 weblogic@test:/abcd$ grep qainejb02 *
qa_cluster_biz_view_tc_intl_servers_ports_2:qainejb02 7101
qa_cluster_servers_2:qainejb02... (2 Replies)
my file input is with tab as delimiter, and in every line, there would be a skip of line with an unexcepted newline breaker. I'd like to remove this \n and put the information in the same line.
INPUT
a1 b1b2 c1
c2 d1
a2 b3 c3 d4
OUTPUT
a1 b1b2 c1c2 ... (9 Replies)
Given a csv file with 40 columns with name, address, hometown etc.
I use a bash command in 1 line which:
1. gets the address column and pipes that to
2. grep the first digit and everything that follows
Command:
awk -F ";" '{print $19}' /Users/jb/Desktop/ReorderTempTotal.csv | grep -o "\d.*"... (7 Replies)
im trying to find the best way to match an expression using grep.
input file is
<html>word word word word.</a>
<html>word word word word word word .</a>
<html>word word word word word word word word .</a>
<html>word word word word word word word word word word word word word word word word... (4 Replies)
Discussion started by: ahfze
4 Replies
LEARN ABOUT OPENSOLARIS
chosts
chosts(1M) System Administration Commands chosts(1M)NAME
chosts - expand cluster names into host names
SYNOPSIS
$CLUSTER_HOME/bin/chosts name [name...]
DESCRIPTION
The chosts utility expands the arguments into a list of host names.
OPERANDS
The following operands are supported:
name The parameter name can be a hostname or a cluster name. If name is a hostname, it is expanded to be a hostname. If name
is a cluster name, that is, an entry exists in the /etc/clusters database (or a NIS or NIS+ map), it is expanded into
the list of hosts that make up that cluster, as specified in the database. The list is typically used by programs that
wish to operate on a list of hosts.
If an entry for clusters has been made in the /etc/nisswitch.conf file, then the order of lookups is controlled by that
entry. If there is no such file or no such entry, then the nameservice look up order is implicitly nis files.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWccon |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO ccp(1M), cconsole(1M), cports(1M), crlogin(1M), cssh(1M), ctelnet(1M), clusters(4), attributes(5)Sun Cluster 3.2 8 Sep 2007 chosts(1M)