07-02-2012
Hi Jayan Jay,
Thank you very much for your reply.
Firstly I would like to apologize about my unclear example. Actually I have a big dataset which I need to extract lines with specific words from the 3rd column which is "abc1.1" from this example together with 2 lines above and 2 lines below. This pattern will loop for the whole dataset.
Is there any possibility?
Thank you very much in advance.
Best wishes,
Amanda
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
how would i extract a range of lines in a file by using the line number? ex: file contains:
1 title
2 i want
3 this part
4 to be taken out
5 from this file
6 and sent to
7 another file
8 not needed
9 end of file
In this case, i want to copy line number 2 to 7 on a new... (2 Replies)
Discussion started by: apalex
2 Replies
2. Shell Programming and Scripting
Hi all,
I need help in doing this scenario. I have two files with multiple lines. I want to compare these two files but ignoring the lines which have words like Tran, Loc, Addr, Charge. Also if i have a word Credit in line, i want to tokenize (i.e string after character "
... (2 Replies)
Discussion started by: jakSun8
2 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I have a very large text file with about 2 million lines.
Each of the lines starts like..
SNP_12345678 A 1212, 121, 343, ...
SNP_12345678 B 4567, 567, 454, ...
and so on.
I want to extract specific SNPs and plot them by GNUplot or excel.
The file is too large to be opened by text... (1 Reply)
Discussion started by: genehunter
1 Replies
4. Shell Programming and Scripting
I hava a file with following data:
number|CREDIT_ID|NULL
date|SYS_CREATION_DATE|NULL
varchar2|GGS_COMMIT_CHAR|NULL
varchar2|GGS_OP_TYPE|NULL
number|GGS_SCN|NULL|
number|GGS_LOG_SEQ|NULL
number|GGS_LOG_POS|NULL
number|GGS_ORACREC_SCN|NULL
varchar2|BATCH_ID|NULL
char|GGS_IMAGE_TYPE|NULL
... (6 Replies)
Discussion started by: kolesunil
6 Replies
5. Shell Programming and Scripting
Hi,
I have a file which contains DDL statements- CREATE TABLE, CREATE INDEX, ALTER TABLE etc.
I have to only pick CREATE TABLE statements from the file-
Source :
----------------------------------------------
--DDL for table abc
--------------------------------------------
CREATE TABLE... (4 Replies)
Discussion started by: newb
4 Replies
6. UNIX Desktop Questions & Answers
well, i am so not familiar with this kind of things but i am gonna explain extactly what i am looking for so hopfully someone can figure it out :)
i have a command that shows memory usage besides the process name, for example(the command output):
500 kb process_1
600 kb process_2
700 kb... (4 Replies)
Discussion started by: Portabello
4 Replies
7. Shell Programming and Scripting
Hi,
Please have a look on below records.
STG_HCM_STATE_DIS_TAX_TBL.1207.Xfm: The value of the row is: EMPLID = 220677 COMPANY = 919 BALANCE_ID = 0 BALANCE_YEAR = 2012
STG_HCM_STATE_DIS_TAX_TBL.1207.Xfm: ORA-00001: unique constraint (SYSADM.PS_TAX_BALANCE) violated
... (4 Replies)
Discussion started by: Sachin Lakka
4 Replies
8. Shell Programming and Scripting
Hi there,
I need a help with extracting data from tab delimited file which look like this
#CHROM POS ID REF ALT Human Cow Dog Mouse Lizard
chr2 3033 . G C 0/0 0/0 0/0 1/1 0/0
chr3 35040 . G T 0/0 0/0 ./. 1/1 0/1
chr4 60584 . T G 1/1 1/1 0/1 1/1 0/0
chr10 7147815 . G A 0/0 1/1 0/0 0/0... (9 Replies)
Discussion started by: houkto
9 Replies
9. Shell Programming and Scripting
Data file example
I look for primary and * to isolate the interesting slot number.
slot=`sed '/^primary$/,/\*/!d' filename | tail -1 | sed s'/*//' | awk '{print $1" "$2}'`
Now I want to get the Touch line for only the associate slot number, in this case, because the asterisk... (2 Replies)
Discussion started by: popeye
2 Replies
10. Shell Programming and Scripting
I have a folder containing text files. I need to extract specific lines from the files of this folder based on another file input.txt. How can I do this with awk/sed?
file1
ARG 81.9 8 81.9 0
LEU 27.1 9 27.1 0
PHE .0 10 .0 0
ASP 59.8 11 59.8 0
ASN 27.6 12 27.6 0
ALA .0 13 .0 0... (5 Replies)
Discussion started by: alanmathew84
5 Replies
LEARN ABOUT DEBIAN
jifty::plugin::chart::web
Jifty::Plugin::Chart::Web(3pm) User Contributed Perl Documentation Jifty::Plugin::Chart::Web(3pm)
NAME
Jifty::Plugin::Chart::Web - Base class to add to Jifty::Web's ISA
DESCRIPTION
When the Jifty::Plugin::Chart is loaded, this class is added as a base class for Jifty::Web to add the "chart" method to that class.
METHODS
chart
Jifty->web->out(Jifty->web->chart(%args));
The arguments passed in %args may include:
type
This will be one of the following scalar values indicating the kind of chart. A given renderer may not support every type listed here.
A renderer might support others in addition to these, but if it supports these it should use these names.
points
This is the default value. A scatter plot with each dataset represented using differnet dot styles.
lines
A line plot with each dataset presented as separate line.
bars
A bar chart with each dataset set side-by-side.
stackedbars
A bar chart with each dataset stacked on top of each other.
pie A pie chart with a single dataset representing the values for different pieces of the pie.
horizontalbars
A bar chart turned sideways.
area
An area chart uses lines to represent each dataset, but the lines are stacked on top of each other with filled areas underneath.
width
This is the width the chart should take when rendered. This may be a number, indicating the width in pixels. It may also be any value
that would be appropriate for the "width" CSS property.
Defaults to "undef", which indicates that the chart will take on whatever size the box it is in will be. See "CSS FOR CHARTS".
height
This is the height the chart should take when rendered. This may be a number, indicating the height in pixels. It may also be any value
that would be appropriate for the "height" CSS property.
Defaults to "undef", which indicates that the chart will take on whatever size the box it is in will be. See "CSS FOR CHARTS".
data
An array of arrays containing the data. The first array in the parent array is a list of labels. Each following array is the set of
data points matching each label in the first array.
Defaults to no data (i.e., it must be given if anything useful is to happen).
class
This allows you to associated an additional class or classes to the element containing the chart. This can be a string containing on or
more class names separated by spaces or an array of class names.
renderer
This allows you to use a different renderer than the one configured in config.yml. Give the renderer as a class name, which will be
initialized for you.
options
This is a hash containing additional options to pass to the renderer and are renderer specific. This may include anything that is not
otherwise set by one of the other options above.
Here's an example:
<% Jifty->web->chart(
type => 'Pie',
width => '100%',
height => '300px',
data => sub {
[
[ 2004, 2005, 2006, 2007 ],
[ 26, 37, 12, 42 ]
];
},
class => 'visualizeronimicon',
) %>
Be sure to output anything returned by the method (unless it returns undef).
CSS FOR CHARTS
The chart API allows you to build the charts without explicit pixel widths and heights. In fact, you can not specify "width" and "height"
and perform the styling in your regular CSS stylesheets by using the "chart" class associated with every chart or by using custom classes
with the "class" argument.
See your renderer class documentation for further details.
JAVASCRIPT FOR CHARTS
Charts typically require JavaScript to render properly. If the client does not have JavaScript available, the chart may not work or could
look very bad.
If you are using one of the image based renderers like Jifty::Plugin::Chart::Renderer::Chart, it is recommended that you stick with pixel
widths if you expect clients with limited or no JavaScript support.
SEE ALSO
Jifty::Plugin::Chart, Jifty::Plugin::Chart::Renderer
AUTHOR
Andrew Sterling Hanenkamp "<andrew.hanenkamp@boomer.com>"
COPYRIGHT AND LICENSE
Copyright 2007 Boomer Consulting, Inc.
This is free software and may be modified and distributed under the same terms as Perl itself.
perl v5.12.4 2009-03-09 Jifty::Plugin::Chart::Web(3pm)