Hello,
I have a tab-delimited table that may contain 11,12 or 13 columns. Depending on the number of columns, I want to cut and get a sub table as shown below. However, the awk commands in the code seem to be an issue. What should I be doing differently?
#cut columns 1-2,4-5,11 when 12 &... (3 Replies)
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Hi I have some data where each line will look something like this:
Time, name, i.d number, RB: 0.9949; RMQA: 0.0005; RB: 0.9951; RRA: 0.3; RA: 0.995; RA: 0.996; EA: 0.99105
etc.
I want to cut out all the RB: and RA:'s with the numbers after.
so in the above example i'd be left... (3 Replies)
Hi,
I have a tab delimited text file from which I want to cut out specific columns. If the second column equals one, I want to cut out columns 1 and 5 and 6. If the second column equals two, I want to cut out columns 1 and 5 and 7. How do I go about doing that? Thanks! (4 Replies)
My scenario is that I need to pick value from third column based on fourth column value, if fourth column value is 1 then first value of third column.Third column (2|3|4|6|1) values are cancatenated.
Please someone help me to resolve this issue.
Source
column1 column2 column3 column4... (2 Replies)
here below is sample string
null pointer dereference of 'resourceList' where null is returned from a method/opt/bld/fetch/ds/interzone/notification/LocalLineStatusNotificationListener.java:79
null pointer dereference of 'reList' where null is returned from a... (3 Replies)
Hi,
I have a similar input format-
A_1 2
B_0 4
A_1 1
B_2 5
A_4 1
and looking to print in this output format with headers. can you suggest in awk?awk because i am doing some pattern matching from parent file to print column 1 of my input using awk already.Thanks!
letter number_of_letters... (5 Replies)
Hello,
I have a table that looks like what is shown below:
AA
BB
CC
XY
PQ
RS
AA
BB
CC
XY
RS
I would like the total counts depending on the set they belong to:
if search pattern is in {AA, BB, CC} --> count them as Type1 | wc -l (3 Replies)
I have two files and would need to filter out records based on certain criteria, these column are of variable lengths, but the lengths are uniform throughout all the records of the file. I have shown a sample of three records below. Line 1-9 is the item number "0227546_1" in the case of the first... (15 Replies)
Hi All ,
I am having an input file as stated below
Input file
6 ddk/djhdj/djhdj/Q 10 0.5
dhd/jdjd.djd.nd/QB 01 0.5
hdhd/jd/jd/jdj/Q 10 0.5
512 hd/hdh/gdh/Q 01 0.5
jdjd/jd/ud/j/QB 10 0.5
HD/jsj/djd/Q 01 0.5
71 hdh/jjd/dj/jd/Q 10 0.5
... (5 Replies)
Discussion started by: kshitij
5 Replies
LEARN ABOUT OSF1
strerr
strerr(8) System Manager's Manual strerr(8)NAME
strerr - Receives error messages from the STREAMS log driver
SYNOPSIS
/usr/sbin/strerr [-a sys_admin_mail_name] [-d logdir]
PARAMETERS
Specifies the mail name of the user to receive the message via mail. This is the system administrator by default. Specifies the directory
to contain the error log file. This is /var/adm/streams by default.
DESCRIPTION
The strerr daemon receives error messages from the STREAMS log driver (strlog) for addition to the STREAMS error log files (error.mm.dd) in
the STREAMS error logger directory (/var/adm/streams by default). When first called, the strerr daemon creates the log file error.mm.dd.
This is a daily log file, where mm indicates the month and dd indicates the day of the logged messages. The strerr daemon then appends
each error message that it subsequently receives from the STREAMS log driver to the log file.
STREAMS error log messages have the following format: seq_num std_time ticks_time flags mod_ID sub_ID msg_text where: The error
sequence number. The time the message was sent, in the format hh:mm:ss. The time the message was sent, measured in machine ticks since
the last boot. Can be any of the following indicators: Indicates that the message has also been saved in the process's trace log. Indi-
cates that the message signaled a fatal error. Indicates that the message is to be sent to the system administrator or specified user via
mail. The module identification number of the trace message source. The subidentification number of the trace message source. The trace
message text.
The strerr daemon will run continuously until terminated by the user.
FILES
The error log file or files on which strerr operates.
NOTES
Only one strerr process can open the STREAMS log driver at a time. This restriction is intended to maximize performance.
The STREAMS error logging mechanism works best when it is not overused. The strerr daemon can degrade STREAMS performance by affecting the
response, throughput, and other behaviors of the drivers and modules that invoke it. The daemon will also fail to capture messages if
drivers and modules generate messages at a higher rate than its optimum read rate. Missing sequence numbers among the messages in a log
file indicate that messages have been lost.
RELATED INFORMATION
Interfaces: strlog(7). delim off
strerr(8)