If you want to use an awksolution then following may help you in same. Let's say our Input_file is as follows for an example.
Now following is the command for your requirement.
Output will be as follows.
Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
hi,
one of our customer is facing an issue with jiffies wrap up.
on a 32 bit machine, the variable jiffies count upto 472 days.
the customer's server was up for 472 days ('uptime') and to reproduce
the same, i tried to change the variable HZ in linux-2.6..23.9/include/asm-i386/param.h
from... (0 Replies)
Hi!
I have installed ubuntu out of an error, a bit of frustration, a bit of annoyance and a bit of excitement! I am (was!) a windows user. I had windows 7 on my laptop. You might already know how famous windows is with nasty viruses. I got one too! Had no option but to get rid of the whole... (3 Replies)
Hi,
Just trying to get to grips with sed and awk for some reporting for work and I need some assistance:
I have a file that lists policy names on the first line and then on the second line whether the policy is active or not.
Policy Name: Policy1
Active: yes
Policy... (8 Replies)
This is a strange one, I've never seen anything like it; the realtime clock doesn't tick while the computer's idle, only when you're watching it. Leave for 3 hours and it'll be 3 hours off. It still advances when it's off however, or the time would be far more incorrect than it is.
About all... (10 Replies)
Hi guys!
I use AWK commands under GAMS to predispose the data files to be read by GAMS.
I have a file which contains groups of data I need. Unfortunately I have the data spread in 3 rows for each subject.
Here's an example (the file is really long)
1 0 2.0956 100.00 250.00 100.00 2.0956... (4 Replies)
Hi..
I need some help in converting the below horizontal lines to vertical lines format.
can anyone help me on this.
input file
Hour,1,2,3,4,5
90RT,106,111,111,112,111
output file
Hour,90RT
1,106
2,111
3,111
4,112
5,111 (3 Replies)
This arrived in the mail from China a few days ago and, for the small money, has been a lot of fun.
Clock Shield RTC module DS1307 module Multifunction Expansion Board with 4 Digit Display Light Sensor and Thermistor For Arduino
This board is a lot of fun for a few bucks. It has a low... (1 Reply)
Discussion started by: Neo
1 Replies
LEARN ABOUT CENTOS
xmscalesetticks
XmScaleSetTicks(library call) XmScaleSetTicks(library call)
NAME
XmScaleSetTicks -- A Scale function that controls tick marks
SYNOPSIS
#include <Xm/Scale.h>
void XmScaleSetTicks(
Widget scale,
int big_every,
Cardinal num_medium,
Cardinal num_small,
Dimension size_big,
Dimension size_medium,
Dimension size_small);
DESCRIPTION
XmScaleSetTicks controls the number, location, and size of the tick marks on a Scale. Each tick mark is a SeparatorGadget oriented perpen-
dicular to the Scale's orientation. For example, if the Scale is oriented horizontally, the tick marks will be oriented vertically.
If you specify tick marks for a Scale and then change the Scale's orientation, you will have to do the following:
o Remove all the tick marks. To remove tick marks from a Scale, you must destroy (with XtDestroyChildren) the SeparatorGadget tick
marks. The first two children of a Scale are its title and scroll bar, and all additional children are tick marks.
o Recreate the tick marks by calling XmScaleSetTicks.
scale Specifies the Scale widget ID that is getting the tick marks.
big_every Specifies the number of scale values between big ticks.
num_medium
Specifies the number of medium ticks between big values.
num_small Specifies the number of small ticks between medium values.
size_big Specifies the size (either width or height) of the big ticks.
size_medium
Specifies the size (either width or height) of the medium ticks.
size_small
Specifies the size (either width or height) of the small ticks.
For a complete definition of Scale and its associated resources, see XmScale(3).
RELATED XmScale(3).
XmScaleSetTicks(library call)