Hi Everyone,
I have one a.txt:
a b 001 c
b b 002 c
c c, not 002 c
The output should be
001
002
002
If i use cut -f 3 -d' ', this does not work on the 3rd line, so i thought is any way to cut the field counting from the end? or any perl thing can do this?:confused:
... (3 Replies)
Hi,
I have a file that has data in it that says
00:01:48.233 1212
00:01:56.233 345
00:09:01.221 5678
00:12:23.321 93444
The file has more line than this but i just wanted to put in a snippet to ask how I would get the highest number with time stamp into another file. So from the above... (2 Replies)
Dears,
I need a script or command which can find the unique number from the second filed and against that number it adds the total of first field .
17215630 , 0
907043 ,1
201050 ,10
394149 ,4
1964 ,9
17215630, 0
907043 ,1
201050, 10
394149 ,4
1964 ,9
1234234, 55
23 ,100
33 ,67
... (2 Replies)
I'm trying to update a text file via sed/awk, after a lot of searching I still can't find a code snippet that I can get to work.
Brief overview:
I have user input a line to a variable, I then find a specific value in this line 10th field in this case. After asking for new input and doing some... (14 Replies)
Hi all,
I'm having an issue about a code i should write...
I have a file... with the following numbers in regex format:
$ cat file_regex.txt
55500508007*
55500218200*
182936*
182929*
4179*
381*
550069341*
So this is a file cointaing some regex... so for each regex i need to... (3 Replies)
Hi all,
I have a file named file1as
07/25 00:10 d327490
07/25 00:55 d378299
07/25 03:58 d378299
07/25 06:14 d642035
07/25 12:44 c997126
and now i want to reverse the first filed ie 07/25 as
25/07 00:10 d327490
25/07 00:55 d378299
25/07 03:58 d378299
25/07 06:14 d642035
25/07... (5 Replies)
Hello,
I have a file:
xandyandz
x & y & z
x*y*z*a
I require output as:
zandyandx
z & y & x
a*z*y*x
here all lines have different field seperator (and & * )based on that i want to reverse the column of a file.
Pl. help. (8 Replies)
Hello,
i need help with awk.
I have this file:
cat number
DirB port 67 er_enc_out 0 er_bad_os 0
DirB port 71 er_enc_out 56 er_bad_os 0
DirB port 74 er_enc_out 0 er_bad_os 0
DirB port 75 ... (4 Replies)
Hi
I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field.
The source file is pipe delimited and looks something like
1|net|ABC Letr1|1530|||
1|net|EXP_1040 ABC|1121|||
1|net|EXP_TG1224|1122|||
1|net|R_North|1123|||... (5 Replies)
Discussion started by: Mudshark
5 Replies
LEARN ABOUT DEBIAN
plscmap1l
PLSCMAP1L(3plplot) PLplot API PLSCMAP1L(3plplot)NAME
plscmap1l - Set color map1 colors using a piece-wise linear relationship
SYNOPSIS
plscmap1l(itype, npts, pos, coord1, coord2, coord3, rev)
DESCRIPTION
Set color map1 colors using a piece-wise linear relationship between position in the color map (from 0 to 1) and position in HLS or RGB
color space (see the PLplot documentation). May be called at any time.
The idea here is to specify a number of control points that define the mapping between palette 1 input positions (intensities) and HLS (or
RGB). Between these points, linear interpolation is used which gives a smooth variation of color with input position. Any number of con-
trol points may be specified, located at arbitrary positions, although typically 2 - 4 are enough. Another way of stating this is that we
are traversing a given number of lines through HLS (or RGB) space as we move through color map1 entries. The control points at the minimum
and maximum position (0 and 1) must always be specified. By adding more control points you can get more variation. One good technique for
plotting functions that vary about some expected average is to use an additional 2 control points in the center (position ~= 0.5) that are
the same lightness as the background (typically white for paper output, black for crt), and same hue as the boundary control points. This
allows the highs and lows to be very easily distinguished.
Each control point must specify the position in color map1 as well as three coordinates in HLS or RGB space. The first point must corre-
spond to position = 0, and the last to position = 1.
The hue is interpolated around the "front" of the color wheel (red<->green<->blue<->red) unless the "rev" flag is set to true, in which
case interpolation (between the i and i + 1 control point for rev[i]) proceeds around the back (reverse) side. Specifying rev=NULL is
equivalent to setting rev[]= false for every control point.
Bounds on coordinatesRGBR[0, 1]magnitudeRGBG[0, 1]magnitudeRGBB[0, 1]magnitudeHLShue[0, 360]degreesHLSlightness[0, 1]magnitudeHLSsatura-
tion[0, 1]magnitude
Redacted form: plscmap1l(itype, pos, coord1, coord2, coord3, rev)
This function is used in examples 8,11,12,15,20,21.
ARGUMENTS
itype (PLBOOL, input)
true: RGB, false: HLS.
npts (PLINT, input)
number of control points
pos (PLFLT *, input)
position for each control point (between 0.0 and 1.0, in ascending order)
coord1 (PLFLT *, input)
first coordinate (H or R) for each control point
coord2 (PLFLT *, input)
second coordinate (L or G) for each control point
coord3 (PLFLT *, input)
third coordinate (S or B) for each control point
rev (PLBOOL: *, input)
reverse flag for each control point. (rev[i] refers to the interpolation interval between the i and i + 1 control points).
AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the
PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere.
SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources.
August, 2012 PLSCMAP1L(3plplot)