I have two files.And a sort of matrix analysis.
Both files have a string followed by two numbers:
File 1:
A 2 7
B 3 11
C 5 10
......
File 2:
X 1 10
Y 3 5
Z 5 9
What I'd like to do is for each set of numbers in the second file indicate if the first or second number (or both) in... (7 Replies)
if the column1 and 2 in both files has same key (for example "a" and "a1") compare each first key value(a1 of a) of input2 (for example 1-4 or 65-69 not 70-100 or 44-40 etc) with all the values in input1.
if the range of first key value in input2 is outof range in input1 values named it as out... (54 Replies)
hi Experts
just wondering if you can help me check a number between a specific range
if i have an ip address , how can i say the valid number for ip between 1 to 254
something like this
if ($ip ) =~ /.../
{
}
what the pattern i need to type
thanks (3 Replies)
Hi there,
Not being too up on bash shell programming at this point, could anyone throw me a bone about how to zip up a set of numerically-named files by range?
For example, in a folder that contains files 1.pdf through 132000.pdf, I'd like to zip up just those files that are 50000.pdf and... (6 Replies)
I am trying to use awk to match the NM_ in file with $1 of id which is tab-delimited. The NM_ will always be in the line of file that starts with > and be after the second _. When there is a match between each NM_ and id, then the value of $2 in id is substituted or used to update the NM_. Each NM_... (3 Replies)
Input: START
OS:: UNIX
Release: xxx
Version: xxx
END
START
OS:: LINUX
Release: xxx
Version: xxx
END
START
OS:: Windows
Release: xxx
Version: xxx
ENDHere i am trying to get all the information between START and END, only if i could match OS Type.
I can get all the data between the... (3 Replies)
In the awk below I am trying to match the value in $4 of file1 with the split value from $4 in file2. I store the value of $4 in file1 in A and the split value (using the _ for the split) in array. I then strore the value in $2 as min, the value in $3 as max, and the value in $1 as chr.
If A is... (6 Replies)
I all
I am tryng to find a way to sort a list of number in a file by the value of last two digit.
i have a list like this
313202320388
333202171199
373202164587
393202143736
323202132208
353201918107
343201887399
363201810249
333201805043
353201791691 (7 Replies)
Discussion started by: rattoeur
7 Replies
LEARN ABOUT DEBIAN
curses::widgets::progressbar
Widgets::ProgressBar(3pm) User Contributed Perl Documentation Widgets::ProgressBar(3pm)NAME
Curses::Widgets::ProgressBar - Progress Bar Widgets
MODULE VERSION
$Id: ProgressBar.pm,v 1.103 2002/11/03 23:40:04 corliss Exp corliss $
SYNOPSIS
use Curses::Widgets::ProgressBar;
$progress = Curses::Widgets::ProgessBar->({
CAPTION => 'Progress',
CAPTIONCOL => 'yellow',
LENGTH => 10,
VALUE => 0,
FOREGROUND => undef,
BACKGROUND => 'black',
BORDER => 1,
BORDERCOL => undef,
HORIZONTAL => 1,
X => 1,
Y => 1,
MIN => 0,
MAX => 100,
});
$progress->draw($mwh);
$progress->input(5);
See the Curses::Widgets pod for other methods.
REQUIREMENTS
Curses
Curses::Widgets
DESCRIPTION
Curses::Widgets::ProgressBar provides simplified OO access to Curses-based progress bar. Each object maintains it's own state information.
Note that this widget is designed for rendering, not interactive input. The application should update the the value of the bar by either
calling the input method, which will add the passed value to the widget's current value, or by setting the value directly via the setField
method.
METHODS
new (inherited from Curses::Widgets)
$progress = Curses::Widgets::ProgressBar->({
CAPTION => 'Progress',
CAPTIONCOL => 'yellow',
LENGTH => 10,
VALUE => 0,
FOREGROUND => undef,
BACKGROUND => 'black',
BORDER => 1,
BORDERCOL => undef,
HORIZONTAL => 1,
X => 1,
Y => 1,
MIN => 0,
MAX => 100,
});
The new method instantiates a new Progress Bar object. The only mandatory key/value pairs in the configuration hash are X and Y. All oth-
ers have the following defaults:
Key Default Description
============================================================
CAPTION undef Caption superimposed on border
CAPTIONCOL undef Foreground colour for caption text
LENGTH 10 Number of columns for the bar
VALUE 0 Current value
FOREGROUND undef Default foreground colour
BACKGROUND undef Default blackground colour
BORDER 1 Display border around the set
BORDERCOL undef Foreground colour for border
HORIZONTAL 1 Horizontal orientation for bar
MIN 0 Low value for bar (0%)
MAX 100 High vlaue for bar (100%)
Setting the value will change the length of the bar, based on the bounds set with MIN and MAX. The CAPTION is only rendered on the border
of a horizontal progress bar.
draw
$progress->draw($mwh);
The draw method renders the progress bar in its current state. This requires a valid handle to a curses window in which it will render
itself.
input
$progress->input(5);
The argument is added to the progress bar's current value.
HISTORY
2001/07/05 -- First implementation
AUTHOR /COPYRIGHT
(c) 2001 Arthur Corliss (corliss@digitalmages.com)
perl v5.8.8 2006-09-14 Widgets::ProgressBar(3pm)