03-28-2012
Please post sample before and after data, making it clear whether this is a fixed-length record and whether fields are left or right justified.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Friends,
I have a log file as below
siteid = HYD
spc = 100
rset = RS_D_M
siteid = DEL
spc = 200
rset = RS_K_L
siteid = DEL2
spc = 210
rset = RS_D_M
Now I need a output like column wise as below.
siteid SPC rset
HYD 100 RS_D_M (2 Replies)
Discussion started by: suresh3566
2 Replies
2. Shell Programming and Scripting
Hi,
Need awk help to group and print lines to format the output as shown below
INPUT FORMAT
set echo on
set heading on
set spool on
/* SCHEMA1 */ CREATE TABLE T1;
/* SCHEMA1 */ CREATE TABLE T2;
/* SCHEMA1 */ CREATE TABLE T3;
/* SCHEMA1 */ CREATE TABLE T4;
/* SCHEMA1 */ CREATE TABLE T5;... (5 Replies)
Discussion started by: rajan_san
5 Replies
3. Shell Programming and Scripting
Well the title is not too good, so I will explain.
I need to move (rename) files using a simple AIX script.
???file1.txt
???file2.txt
???file1a.txt
???file2a.txt
to be:
???renamedfile1'date'.txt
???renamedfile2'date'.txt
???renamedfile1a'date'.txt
???renamedfile2a'date'.txt
... (4 Replies)
Discussion started by: grimace15
4 Replies
4. Shell Programming and Scripting
Hi all,
I have space delimated file which look like this
1 2 3 4
5 6 7 8
9 1 0 11
I am using simple awk command to read the second column
awk '{print $2}' input_file
but i got the output like this which also read 10 from the third column
2
6... (8 Replies)
Discussion started by: bsn2011
8 Replies
5. Shell Programming and Scripting
Hello,
I have two files
Original: ( 5000 entries)
Chr Position
chr1 879108
chr1 881918
chr1 896874 ...
and a file with allele freq ( 2000 entries)
Chr Position MAF
chr1 881918 0.007
chr1 979748 0.007
chr1... (9 Replies)
Discussion started by: nans
9 Replies
6. Shell Programming and Scripting
There are some duplicate field on description column .I want to print duplicate row along with highest version of number and corresponding description column.
file1.txt
number Description
=== ============
34567 nl21a00is-centerdb001:ncdbareq:Error in loading init
34577 ... (7 Replies)
Discussion started by: vijay_rajni
7 Replies
7. UNIX and Linux Applications
Hi! How we are?
I have an A4 PDF in my server, and i must send it to phisically printer.
I use the comand:
lpr -P printername -o media=A4 archive.pdf
And the printer prints it in letter format, i don't know why.
¿Have ideas or solution?
Thanks, my best regards. (6 Replies)
Discussion started by: dcastellini
6 Replies
8. Shell Programming and Scripting
Hi to all,
May someone help me with the following.
The awk script below is part of a bigger awk script, and this part attempts to print an Ip address that is in hex format in decimal format. I'm trying with following code but
I'm getting 0.0.0.0 and the correct answer is 192.168.140.100
... (9 Replies)
Discussion started by: Ophiuchus
9 Replies
9. UNIX for Beginners Questions & Answers
Hello, I have two tab files with headers
File1: with 4 columns
header1 header2 header3 header4
44 a bb 1
57 c ab 4
64 d d 5
File2: with 26 columns
header1.. header5 header6 header7 ... header 22...header26
id1 44 a bb
id2 57 ... (6 Replies)
Discussion started by: nans
6 Replies
10. Shell Programming and Scripting
The awk below executes and produces the current output, which is correct, except I can not seem to include the header lines # and ## in the output as well. I tried adding !/^#/ thinking that it would skip the lines with # and output them but the entire file prints as is. Thank you :).
file
... (8 Replies)
Discussion started by: cmccabe
8 Replies
LEARN ABOUT CENTOS
bootchart.conf
BOOTCHART.CONF(5) bootchart.conf BOOTCHART.CONF(5)
NAME
bootchart.conf - Boot performance analysis graphing tool configuration file
SYNOPSIS
/etc/systemd/bootchart.conf
DESCRIPTION
When starting, systemd-bootchart will read the configuration file bootchart.conf. This configuration file determines logging parameters and
graph output.
OPTIONS
Samples=500
Configure the amount of samples to record in total before bootchart exits. Each sample will record at intervals defined by Frequency=.
Frequency=25
Configure the sample log frequency. This can be a fractional number, but must be larger than 0.0. Most systems can cope with values
under 25-50 without impacting boot time severely.
Relative=no
Configures whether the left axis of the output graph equals time=0.0 (CLOCK_MONOTONIC start). This is useful for using bootchart at
post-boot time to profile an already booted system, otherwise the graph would become extremely large. If set to yes, the horizontal
axis starts at the first recorded sample instead of time=0.0.
Filter=no
Configures whether the resulting graph should omit tasks that did not contribute significantly to the boot. Processes that are too
short-lived (only seen in one sample) or that do not consume any significant CPU time (less than 0.001sec) will not be displayed in the
output graph.
Output=[path]
Configures the output directory for writing the graphs. By default, bootchart writes the graphs to /run/log.
Init=[path]
Configures bootchart to run a non-standard binary instead of /sbin/init. This option is only relevant if bootchart was invoked from the
kernel command line with init=/usr/lib/systemd/systemd-bootchart.
PlotMemoryUsage=no
If set to yes, enables logging and graphing of processes' PSS memory consumption.
PlotEntropyGraph=no
If set to yes, enables logging and graphing of the kernel random entropy pool size.
ScaleX=100
Horizontal scaling factor for all variable graph components.
ScaleY=20
Vertical scaling factor for all variable graph components.
SEE ALSO
systemd-bootchart(1), systemd.directives(7)
systemd 208 BOOTCHART.CONF(5)