I'm trying to write a bash script to perform basic arithmetic operations but I want to run a comparison on the arguments first to check that they're a number greater than zero.
I want an error to pop up if the arguments args aren't >= 0 so I have:
But whenever I type in something like "blah + 9" it should tell me "bad number: blah", instead it treats "blah" as a zero and it gives the output as 9. If I use -gt 0 it eliminates the "blah" but also doesn't let me use zeros.
I need some help with a script which accepts multiple rows of input (analysis from a virtual robot's testrun) from the standard in, and compares it as a whole with another file featuring erroneous data from a virtual robot's test run. What I want it to be able to do is slice off all the erroneous... (2 Replies)
Hi,
I need sample code to compare the two files line by line which contains text strings and to print the difference in the third file.
Thanks in advance (1 Reply)
I have a file list.txt which has a list of file names with spaces between the file names like
/emptydir/file 1
how do i browse through the list.txt displaying the filenames. Almost all the file names in list.txt have space between them.This file list.txt is formed by using the find statement to... (5 Replies)
Hi All,
In one shell script I have
In variable "i" I am getting a full path of a file. Now I want to compare something like
-- upper(*Nav*))
I dont want to do like below because in each CASE statement I doing so many operations.
Please guide me.
Thanks in advance... (4 Replies)
Hi all,
Could someone please advise what is the correct syntax for my little script to process a table of values?
The table is as follows:
0.002432 20.827656
0.006432 23.120364
0.010432 25.914184
0.014432 20.442655
0.018432 20.015243
0.022432 21.579517
0.026432 18.886874... (9 Replies)
Hello everybody,
I need to create a file name from string. The thing is:
I have a directory with files e.g:
test.123
test.234
test.345
test.987
The name should be made from the first and last name of file alphabetically and from the directory, they are in, eg.
... (2 Replies)
Hi,
I am working in bash in Mac OSX, I have following 'input.txt' file:
<INFO> HypoTestTool: >>> Done running HypoTestInverter on the workspace combined
<INFO> HypoTestTool: The computed upper limit is: 11 +/- 1.02651
<INFO> HypoTestTool: expected limit (median) 11
<INFO> HypoTestTool: ... (13 Replies)
This should be a really easy question.
My input file will have a few fields that are strings in the first line, which I will extract and save as variables. The rest of the fields on every line will be integers and floating point numbers. Can awk tell the difference somehow? That is, is there... (5 Replies)
Hi,
I'm totally new at this, so help will be appreciated.
I have a directory with a bunch of files in it. The files are named xinteger_yinteger_zinteger.vtk (eg, x3_y0_z-1.vtk). I want to read the filenames and then assign the integers to variables that I then can use in expressions. So, for... (6 Replies)
Discussion started by: jhsinger
6 Replies
LEARN ABOUT DEBIAN
wx::perl::datawalker
Wx::Perl::DataWalker(3pm) User Contributed Perl Documentation Wx::Perl::DataWalker(3pm)NAME
Wx::Perl::DataWalker - Perl extension for blah blah blah
SYNOPSIS
# alternatively, see the dataWalker.pl script in this distribution!
use Wx::Perl::DataWalker;
my $data_to_browse = {
# complex data structure.
# Good test: \%::
};
package MyWalkerDialog;
our @ISA = qw(Wx::App);
sub OnInit {
my $self = shift;
my $frame = Wx::Perl::DataWalker->new(
{data => $data_to_browse},
undef, -1,
"dataWalker",
);
$self->SetTopWindow($frame);
$frame->Show(1);
$frame->SetSize(500,500);
return 1;
}
package main;
my $app = MyWalkerDialog->new();
$app->MainLoop();
DESCRIPTION
"Wx::Perl::DataWalker" implements a "Wx::Frame" subclass that shows a relatively simple Perl data structure browser. After opening such a
frame and supplying it with a reference to an essentially arbitrary data structure, you can visually browse it by double-clicking
references.
So far, there is no tree view but only a display of the current level of the data structure. You can traverse back up the structure with a
back button.
Optionally, "Wx::Perl::DataWalker" displays the (approximate!) size of the data structure using "Devel::Size".
SEE ALSO
Wx, Devel::Size
Padre::Plugin::DataWalker
AUTHOR
Steffen Mueller, <smueller@cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2009 by Steffen Mueller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8 or, at
your option, any later version of Perl 5 you may have available.
perl v5.10.0 2009-03-29 Wx::Perl::DataWalker(3pm)