02-19-2013
can you post a sample of the file and required output ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is there a command that sets a variable length?
I have a input of a variable length field but my output for that field needs to be set to 32 char.
Is there such a command?
I am on a sun box running ksh
Thanks (2 Replies)
Discussion started by: r1500
2 Replies
2. Shell Programming and Scripting
code is as
#!/bin/sh
i=1;
while
do
welcome $i times;
i='expr $i+1';
done
exit 0; (6 Replies)
Discussion started by: mrityunjay22
6 Replies
3. Shell Programming and Scripting
Hi there,
I need to add a sequence of numbers to existing variables within the script to be able to call the variable automatically. Somehow it's just printing the loop number. Here's what I've got so far. :eek:
#!/bin/sh
FOLDER1=foo
FOLDER2=bar
FOLDER3=beer
for ((a=1; a <= 3 ; a++))... (2 Replies)
Discussion started by: siul0_0
2 Replies
4. Shell Programming and Scripting
Very, very new to unix scripting and have a unique situation. I have a file of records that contain 3 records types:
(H)eader Records
(D)etail Records
(T)railer Records
The Detail records are 82 bytes in length which is perfect. The Header and Trailer records sometimes are 82 bytes in... (3 Replies)
Discussion started by: jclanc8
3 Replies
5. Shell Programming and Scripting
Hi All,
I have a variable n that stores a number.
Eg. echo $n comes out to be 120.
I need to print 121 using echo command on n.
Please advice.
Thanks in advance !! (4 Replies)
Discussion started by: learning_skills
4 Replies
6. Shell Programming and Scripting
Dear all,
I have basic knowledge of Unix script and her I am trying to process variable length and variable format CSV file.
The file length will depend on the numbers of Earnings/Deductions/Direct Deposits.
And
The format will depend on whether it is Earnings/Deductions or Direct Deposits... (2 Replies)
Discussion started by: chechun
2 Replies
7. Shell Programming and Scripting
Hi,
Can anyone help with a effective solution ?
I need to change a variable length text field (between 1 - 18 characters) to a fixed length text of 18 characters with the unused portion, at the end, filled with spaces.
The text field is actually field 10 of a .csv file however I could cut... (7 Replies)
Discussion started by: dc18
7 Replies
8. Shell Programming and Scripting
Hi, I was wondering if anyone could assist me for (what is probably) a very straightforward answer.
I have input files containing something like
File 1
Apples
Apples
Apples
Apples
File 2
Bananas
Bananas
Bananas
Bananas (4 Replies)
Discussion started by: hubleo
4 Replies
9. Shell Programming and Scripting
Hi,
I have a variable which stores file names as a result of find command. I need to delete all these files one by one, i.e. by a loop. Can anyone tell me how can it be done?
The variable f2d has the file names like these
abc.txt
bcd.txt
fff.txt
gef.txt
Now I have used a loop as... (12 Replies)
Discussion started by: jhilmil
12 Replies
10. Shell Programming and Scripting
Hi Team,
I have an issue to split the file which is having special chracter(German Char) using awk command.
I have a different length records in a file. I am separating the files based on the length using awk command.
The command is working fine if the record is not having any... (7 Replies)
Discussion started by: Anthuvan
7 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)