Sponsored Content
Top Forums Shell Programming and Scripting filtering a numeric value which has '%' using awk Post 302606768 by raghu.iv85 on Monday 12th of March 2012 05:24:57 PM
Old 03-12-2012
thanks much for the suggestion... It worked.... Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

awk filtering ?

I have a Ques. Regarding awk I have few strings in a file, like.. ABC DEF_ABC GHI_ABC GHI Now I want string which has only 'ABC', not the part of any other string as it is also present in 'DEF_ABC' Output should be ABC Please guide me asap !! Thanks :b: (4 Replies)
Discussion started by: varungupta
4 Replies

2. Shell Programming and Scripting

filtering records based on numeric field value in 8th position

I have a ";" delimited file.Whcih conatins a number fileds of length 4 charcters in 8th position But there is a alphanumeric charcters like : space, ";" , "," , "/" , "23-1" , "23 1" , "aqjhdj" , "jun-23" , "APR-04" , "4:00AM" , "-234" , "56784 ", "." , "+" "_" , "&" , "*" , "^" , "%" , "!"... (2 Replies)
Discussion started by: indusri
2 Replies

3. Shell Programming and Scripting

awk filtering, then execution

Hi, I need to do the following but I don't know exactly what to do. I need to monitor a file ... with tail -f for example, but I know that I could do it with awk, wait for a specific string ... , then perform an action, call a script, etc. Let's say that my file name is test.txt , I need... (3 Replies)
Discussion started by: ocramas
3 Replies

4. Shell Programming and Scripting

Filtering out text with awk

(0 Replies)
Discussion started by: nilekyle
0 Replies

5. Shell Programming and Scripting

filtering with awk

i have question about awk ex: input.txt 1252468812,yahoo,3.5 1252468812,hotmail,2.4 1252468819,yahoo,1.2 msn,1252468812,8.9 1252468923,gmail,12 live,1252468812,3.4 yahoo,1252468812,9.0 1252468929,msn,1.2 output.txt 1252468812,yahoo,3.5 1252468812,hotmail,2.4 msn,1252468812,8.9... (3 Replies)
Discussion started by: zvtral
3 Replies

6. Shell Programming and Scripting

filtering awk not using grep

hallow all i have question about awk i want indexing last key (in BOLD number) ex: input.txt 1 252468812 52468812 1281268819 1252468812 1252468923 468812 1252468812 so output will like this output text 1:252468812 2:52468812 4:1252468812 6:468812 7:1252468812 output get... (8 Replies)
Discussion started by: zvtral
8 Replies

7. Shell Programming and Scripting

awk data filtering

I am trying to filter out some data with awk. If someone could help me that would be great. Below is my input file. Date: 10-JUN-12 12:00:00 B 0: 00 00 00 00 10 00 16 28 B 120: 00 00 00 39 53 32 86 29 Date: 10-JUN-12 12:00:10 B 0: 00 00 00 00 10 01 11 22 B 120: 00 00 00 29 23 32 16 29... (5 Replies)
Discussion started by: thibodc
5 Replies

8. Shell Programming and Scripting

awk using sub , filtering textfile

i have text file as below CMF_COMP_ELEM_ GSM2_B71.WORLD_20121114130908.log 107496444 rows inserted into ALL_S1_CMF_COMP_ELEM. CMF_COMP_ELEM_ GSM3_B71.WORLD_20121114130908.log 110729006 rows inserted into ALL_S1_CMF_COMP_ELEM. CMF_COMP_ELEM_ GSM4_B71.WORLD_20121114130908.log 92549475... (8 Replies)
Discussion started by: only4satish
8 Replies

9. Shell Programming and Scripting

Variable filtering in awk

Hello all, can you explain why this filter does not work, it prints all the lines in the file: awk -v sel="TestString" 'sel' file while these work: awk '/TestString/' file awk -v sel="TestString" '$0~sel' file Thanks!:) (6 Replies)
Discussion started by: gio001
6 Replies

10. UNIX for Beginners Questions & Answers

Filtering text with awk

I need to filter a file that is composed like that: >Cluster 0 0 292nt, >last294258;size=1;... * >Cluster 1 0 292nt, >last111510;size=1;... * 1 290nt, >last136280;size=1;... at -/98.62% 2 292nt, >last217336;size=1;... at +/99.66% 3 292nt, >last280937;size=1;... at -/99.32% >Cluster 2... (6 Replies)
Discussion started by: pedro88
6 Replies
PCV(1)							       Picviz Documentation							    PCV(1)

NAME
pcv - Picviz console veritable tool SYNOPSIS
pcv -Toutput_plugin [-Rrender_plugin] [options] file.pcv ['filter'] DESCRIPTION
pcv allows to compile PCV files into a plugin choosen format, such as svg, csv, png or other. -Tplugin Replace 'plugin' with a output plugin name. See plugin section -Rplugin Replace 'plugin' with a render plugin name. See plugin section options can be either one or several among: -A argument Provides arguments to the render and output plugin -a Displays all text along with lines -d Activates debug mode -Ln Draw text every n line -l Skip learning mode -o file Output to the given file instead of stdout -p file Use given file to store PID -r...(rrr) Increases image height and width -s socket.name Create the socket.name and listen to it (for real-time capabilities) -t template Use the given template when listening to a socket -Warg Use Picviz with a special keyword. See keywords section The filter parameter is explained in the filter section below. PLUGINS
Plugins are located with ld, search path can be overridden with PICVIZ_PLUGINS_PATH environment variable. Output Output data in the wanted file format. Available plugins are: svg plplot csv sdl pngcairo debug Render Modify data rendering. Available plugins are: heatline: possible arguments (-A): virus debug KEYWORDS
Keywords are special parameters given to picviz to use a library along with parsing and rendering. This is deactivated by default because it makes the program slow, but it may be very usefull in certain cases. Following keywords are accepted: pcre: activates pcre pattern matching for filtering (pcv -Tsvg -Wpcre file.pcv 'show value = ".*foo.*" on axis 1') FILTER
pcv allows filtering to choose data you want to see displayed. When the pcv language parser is called, a Pcv Image Filter (PIF) is applied. It allows to filter either before any data is calculated (data filter), once calculated and before adding the line to the image (pre line filter) or, once other lines have been added and ask for specific removales (post line filter). Relations Filter relation can be either: = equal != not equal < less than > greater than <= less or equal >= greater or equal Selecting plot value plot: Will select the value, as plotted by the engine. Accepted values can be the y position on the axis or the relative percentage. 'show plot > 100 on axis 3': will display only lines which have their plot on the axis 3 greater than 100 can be called like this: Example: pcv -Tsvg file.pcv 'show plot > 100 on axis 3' By default, the image height is 500 pixels, so this filter is equivalent than > 100: 'show plot > 20% on axis 3'. It is possible to filter using multi-criterion values: 'show plot > 20% on axis 3 and plot < 42 on axis 5' Pattern matching Values can be selected, either with their original text string, or by using pattern matching. By default, pattern matching is not activated. Pattern matching activated is done with -Wpcre argument. To filter values with [0-9][aA].*, you can type: pcv -Tsvg file.pcv -Wpcre 'show value = "[0-9][aA].*" on axis 1'. Note that with string comparisons (with value), only the equal (=) relation is accepted. EXAMPLE
pcv -Tsvg file.pcv pcv -Tpngcairo file.pcv -rrrr -a > file.png pcv -Tpngcairo -Rheatline -Avirus file.pcv > file.svg pcv -Tpngcairo -s local.sock -t file.pcv -o file.png '' BUGS
If you are sure you are not dealing with a feature, you can report BUGS using the trac ticketing system available at http://www.wallinfire.net/picviz. AUTHORS
Man page written by Sebastien Tricaud toady gscore org. perl v5.10.0 2008-12-21 PCV(1)
All times are GMT -4. The time now is 04:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy