Sponsored Content
Full Discussion: Eliminate unwanted data
Top Forums Shell Programming and Scripting Eliminate unwanted data Post 302288671 by jim mcnamara on Tuesday 17th of February 2009 04:21:33 PM
Old 02-17-2009
ok -
Code:
grep -v  -e "BIO" -e "PPN" -e "PNN" -e "FNN" -e "NPF" -e "BCC" inputfilename > outputfilename

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to eliminate extra char?

I was trying to grep a variable with one space in my file: questionlabel=Q1 more job.tex Q1 pear Q1A applie grep -i "$questionlabel\ " job.tex > tmp But I keep getting : Q1 and Q1A both in my tmp Thanks!!!! (4 Replies)
Discussion started by: whatisthis
4 Replies

2. Shell Programming and Scripting

Remove unwanted data?

Hi Can any one help me remove the unwanted data? I would want to remove the complete event id 4910 ( the type there is INFO), that means, I have to remove starting from 7th - 19th lines. can any one of you please help? Thanks, (24 Replies)
Discussion started by: hitmansilentass
24 Replies

3. Shell Programming and Scripting

How to eliminate < > sign meaning

Hi I would like to replace one of our script, and add some pre-checking for the input file before running the command, but I bumped into the following issue: Original command: use < input.txt I cannot modify the original command, but I created the useit script which would be called as... (2 Replies)
Discussion started by: apapp
2 Replies

4. Shell Programming and Scripting

Eliminate redundant data pairs

Hello Experts: I appeal to you to see if you can help me with a small problem. I have a .log file where there is data in two columns (separated by a space). The file is thus: 0.0 3 0.0 6 0.0 6 0.0 6 0.0 7 0.0 7 0.0 7 0.0 7 0.0 11 0.0 11 0.0 11 0.0 11 0.0 11 0.1 17 (6 Replies)
Discussion started by: Flamex
6 Replies

5. Shell Programming and Scripting

Compare and eliminate

Could any one help me to compare the date value say at 10th column with sysdate (i.e current date) and if diffrence is more than 50 days then filter them out from the file. The file contain 10000 records. head file 00971502657744 A671FAHP2EW8BG1369172011HRWS contact information ... (6 Replies)
Discussion started by: zooby
6 Replies

6. Shell Programming and Scripting

How to eliminate ^L

Hi, I am trying to create a text file from data retrieved from a query.The data retrieved is having this character '^L' at regular intervals of the data. How can i eliminate this, Please find below the sample data. I tried sed -e "s/\^L//g" to convert it, but with no luck ^LCODE*SERIAL... (11 Replies)
Discussion started by: ramkiran77
11 Replies

7. Shell Programming and Scripting

Help with parsing data with awk , eliminating unwanted data

Experts , Below is the data: --- Physical volumes --- PV Name /dev/dsk/c1t2d0 VG Name /dev/vg00 PV Status available Allocatable yes VGDA 2 Cur LV 8 PE Size (Mbytes) 8 Total PE 4350 Free PE 2036 Allocated PE 2314 Stale PE 0 IO Timeout (Seconds) default --- Physical volumes ---... (5 Replies)
Discussion started by: rveri
5 Replies

8. UNIX for Dummies Questions & Answers

Deleting the unwanted data based on condition

hi i have my input data like this aaa bbb ccc asa dff nmj mnj saa dff oik aax cdx saa oik asq sdf dssi want my output file to be like this mnj saa dff oik aax cdx saa oiki want to retain only those lines which will have oik just below them and i want oik to be as next column to those... (1 Reply)
Discussion started by: anurupa777
1 Replies

9. Shell Programming and Scripting

Need help to eliminate the records

Hi All, Please help me how to remove the records from the file if it is having more number of fields than the required one, before loading into stage Here is the sample records. File is space delimited one chandu 1121324 CC ( 2 spaces) chandu balu 434657 DD (3 spaces) -- failing due to... (10 Replies)
Discussion started by: bbc17484
10 Replies

10. Shell Programming and Scripting

Eliminate or ignore asterisks in data when parsing

I have data file that has this in it: data.txt ......... ......... PPJ97**2017PPJ97**2017-03-21-13.35.15.887208********************START ERROR LOGGING****************** PPJ97**2017-03-21-13.35.15.887208** PROMPT APPLICATION ERROR ** PPJ97**2017-03-21-13.35.15.887208** IN TIMESTAMP |... (1 Reply)
Discussion started by: SkySmart
1 Replies
QwtLinearColorMap(3)						 Qwt User's Guide					      QwtLinearColorMap(3)

NAME
QwtLinearColorMap - QwtLinearColorMap builds a color map from color stops. SYNOPSIS
#include <qwt_color_map.h> Inherits QwtColorMap. Public Types enum Format { RGB, Indexed } enum Mode { FixedColors, ScaledColors } Public Member Functions void addColorStop (double value, const QColor &) QColor color (const QwtDoubleInterval &, double value) const QColor color1 () const QColor color2 () const virtual unsigned char colorIndex (const QwtDoubleInterval &, double value) const QwtArray< double > colorStops () const virtual QVector< QRgb > colorTable (const QwtDoubleInterval &) const virtual QwtColorMap * copy () const Format format () const Mode mode () const QwtLinearColorMap & operator= (const QwtLinearColorMap &) QwtLinearColorMap (const QColor &from, const QColor &to, QwtColorMap::Format=QwtColorMap::RGB) QwtLinearColorMap (QwtColorMap::Format=QwtColorMap::RGB) QwtLinearColorMap (const QwtLinearColorMap &) virtual QRgb rgb (const QwtDoubleInterval &, double value) const void setColorInterval (const QColor &color1, const QColor &color2) void setMode (Mode) virtual ~QwtLinearColorMap () Detailed Description QwtLinearColorMap builds a color map from color stops. A color stop is a color at a specific position. The valid range for the positions is [0.0, 1.0]. When mapping a value into a color it is translated into this interval. If mode() == FixedColors the color is calculated from the next lower color stop. If mode() == ScaledColors the color is calculated by interpolating the colors of the adjacent stops. Member Enumeration Documentation enum QwtColorMap::Format [inherited] .IP o 2 RGB The map is intended to map into QRgb values. o Indexed The map is intended to map into 8 bit values, that are indices into the color table. See also: rgb(), colorIndex(), colorTable() enum QwtLinearColorMap::Mode Mode of color map See also: setMode(), mode() Constructor &; Destructor Documentation QwtLinearColorMap::QwtLinearColorMap (QwtColorMap::Formatformat = QwtColorMap::RGB) Build a color map with two stops at 0.0 and 1.0. The color at 0.0 is Qt::blue, at 1.0 it is Qt::yellow. Parameters: format Preferred format of the color map QwtLinearColorMap::QwtLinearColorMap (const QColor &color1, const QColor &color2, QwtColorMap::Formatformat = QwtColorMap::RGB) Build a color map with two stops at 0.0 and 1.0. Parameters: color1 Color used for the minimum value of the value interval color2 Color used for the maximum value of the value interval format Preferred format of the coor map QwtLinearColorMap::QwtLinearColorMap (const QwtLinearColorMap &other) Copy constructor. QwtLinearColorMap::~QwtLinearColorMap () [virtual] Destructor. Member Function Documentation void QwtLinearColorMap::addColorStop (doublevalue, const QColor &color) Add a color stop The value has to be in the range [0.0, 1.0]. F.e. a stop at position 17.0 for a range [10.0,20.0] must be passed as: (17.0 - 10.0) / (20.0 - 10.0) Parameters: value Value between [0.0, 1.0] color Color stop QColor QwtColorMap::color (const QwtDoubleInterval &interval, doublevalue) const [inline, inherited] Map a value into a color Parameters: interval Valid interval for values value Value Returns: Color corresponding to value Warning: This method is slow for Indexed color maps. If it is necessary to map many values, its better to get the color table once and find the color using colorIndex(). QColor QwtLinearColorMap::color1 () const Returns: the first color of the color range See also: setColorInterval() QColor QwtLinearColorMap::color2 () const Returns: the second color of the color range See also: setColorInterval() unsigned char QwtLinearColorMap::colorIndex (const QwtDoubleInterval &interval, doublevalue) const [virtual] Map a value of a given interval into a color index, between 0 and 255 Parameters: interval Range for all values value Value to map into a color index Implements QwtColorMap. QwtArray< double > QwtLinearColorMap::colorStops () const Return all positions of color stops in increasing order QwtColorTable QwtColorMap::colorTable (const QwtDoubleInterval &interval) const [virtual, inherited] Build and return a color map of 256 colors The color table is needed for rendering indexed images in combination with using colorIndex(). Parameters: interval Range for the values Returns: A color table, that can be used for a QImage QwtColorMap * QwtLinearColorMap::copy () const [virtual] Clone the color map. Implements QwtColorMap. QwtColorMap::Format QwtColorMap::format () const [inline, inherited] Returns: Intended format of the color map See also: Format QwtLinearColorMap::Mode QwtLinearColorMap::mode () const Returns: Mode of the color map See also: setMode() QwtLinearColorMap & QwtLinearColorMap::operator= (const QwtLinearColorMap &other) Assignment operator. QRgb QwtLinearColorMap::rgb (const QwtDoubleInterval &interval, doublevalue) const [virtual] Map a value of a given interval into a rgb value Parameters: interval Range for all values value Value to map into a rgb value Implements QwtColorMap. void QwtLinearColorMap::setColorInterval (const QColor &color1, const QColor &color2) Set the color range Add stops at 0.0 and 1.0. Parameters: color1 Color used for the minimum value of the value interval color2 Color used for the maximum value of the value interval See also: color1(), color2() void QwtLinearColorMap::setMode (Modemode) Set the mode of the color map. FixedColors means the color is calculated from the next lower color stop. ScaledColors means the color is calculated by interpolating the colors of the adjacent stops. See also: mode() Author Generated automatically by Doxygen for Qwt User's Guide from the source code. Version 5.2.2 Mon Aug 1 2011 QwtLinearColorMap(3)
All times are GMT -4. The time now is 08:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy