I would like to concatenating and appending the string content based on its header description. For those header description got "fwd",it append its content ascending. For those header description got "rev",it append its content descending. I trying the awk and perl do archive my desired goal now. Thanks a lot for any advice and suggestion.
Hi,
I want to know if you can input with sed but instead of specifing a line number like below I wan't to be able to insert based on a specific word or patttern.
10i\
Insert me after line 10
is this possible with sed or should I use AWK?
Thanks
Jack (2 Replies)
Hi all,
I've been working on a script which I have hit a road block now. I have written a script using sed to extract the below data and pumped into another file:
Severity............: MAJORWARNING
Summary:
System temperature is out of normal range.
Severity............: MAJORWARNING... (13 Replies)
My input:
File_1:
2000_t
g1110.b1
abb.1
2001_t
g1111.b1
abb.2
abb.2
g1112.b1
abb.3
2002_t
.
.
File_2:
2000_t Ali england 135
abb.1 Zoe british 150
2001_t Ali england 305
g1111.b1 Lucy russia 126 (6 Replies)
Hello
i have go the following result from performing 2 testing using the same file.
I have used unix script to extract the result because the files are many as shown below.
01_gravity.f.tcov 7 3 42.86
02_gravity.f.tcov 9 4 80.86... (4 Replies)
Hi,
I have a directory with around 100k files and files with varying sizes(10GB files to as low as 5KB). All the files are having pipe dilimited records.
I need to append 7 pipes to the end of each record, in each file whose name contains _X3_ and need to append 10 pipes to the end of each... (3 Replies)
Dear all,
I have many files(.csv) in a directory.
I want to concatenate the files which have similar entries in a particular column and save into a new file like result_datetime.csv etc.
One example file is like below.
Sno,Step,Data1,Data2,Data3 etc.
1,0,2,3,4
2,1,3,4,5
3,2,0,1,1
... (4 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)
Discussion started by: vivek d r
10 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)