What i would like to know is , is there an other way to represent the sum of all elements in the structure instead of adding in the above way???
one more way;
but an extra element to be populated in the node.
your prev definition of the structure.
modifiy the structure definition as
when adding each of the element to the list of nodes, just populate the cumSum
and to retrieve the totalSum just read the lastelement.cumSum,
that would do.
Sorry for such a dreadful title, but I'm not sure how to be more descriptive. I'm hoping some of the more gurutastic out there can take a look at a solution I came up with to a problem, and advice if there are better ways to have gone about it.
To make a long story short around 20K pieces of... (2 Replies)
I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends.
As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Hi
I am trying to add variables(float values) in a unix script but am getting an error
value=`expr $a + $b + $c`
The error I am getting is "expr: non-numeric argument"
I guess it has got to something with the decimal points.
Plz help (13 Replies)
Hi there
If I run a 'swap -l' on my solaris box, i get
swapfile dev swaplo blocks free
/dev/dsk/c1t0d0s1 54,65 8 67119560 65655144
/dev/dsk/c1t0d0s2 54,65 8 33119522 32655122
I wanted to run a for loop adding up the totals of each column 4 , excluding the... (2 Replies)
I have 3 variables with different information.. they look like this (row-wise aswell):
Variable1 =
Roland
Kalle
Dalius
Variable2 =
ake123
ler321
kaf434
Variable3 =
Richardsen
Sworden
Lokthar
How can I sort them by variable3 alphabetical and add them into the same output so... (0 Replies)
Hi.
I have a for loop that I use to extract integer values in a shell script (ksh). Now, I would like to add the values. My preference, from my c programming days, would be to do something like the commented out line below in the for loop. However, this is not recognised. So I use the line... (2 Replies)
I have a script below that goes to the given directory and plays the newest powerpoint presentation via powerpoint viewer and wine.
So far it works perfectly but now Id like to add a while statement to essentially run find /ticker/powerpointshare -mmin -1 -type f -iname "*.ppt" and if it finds a... (9 Replies)
Hello,
I want to add a letter to the end of a string if it repeats in a column.
so if I have a file like this:
DOG001
DOG0023
DOG004
DOG001
DOG0023
DOG001
the output should look like this:
DOG001-a
DOG0023-a
DOG004
DOG001-b (15 Replies)
So, I have this command:
mkdir rolled
for %%x in (*gif) do convert %%x -roll +2+6 %%x|move %%x rolled
I'd like to have the +2 and +6 accumulate here.
In each new gif tackled, it should increase by the amount: +2 (for x) and +6 (for y)
Is this possible?
I'm on Windows, DOS. (0 Replies)
Discussion started by: pasc
0 Replies
LEARN ABOUT DEBIAN
mango-lassi
MANGO-LASSI(1) General Commands Manual MANGO-LASSI(1)NAME
mango-lassi - Share mouse and pointer with other computers.
SYNOPSIS
mango-lassi [OPTIONS]...
DESCRIPTION
This manual page documents briefly the mango-lassi command-line options.
mango-lassi lets you to share mouse and pointer with other computers using Avahi.
OPTIONS -h, --help
Show help options.
--help-all
Show all help options.
--help-gtk
Show GTK+ Options.
--class=CLASS
Program class as used by the window manager.
--name=NAME
Program name as used by the window manager.
--screen=SCREEN
X screen to use.
--sync Make X calls synchronous.
--gtk-module=MODULES
Load additional GTK+ modules.
--g-fatal-warnings
Make all warnings fatal.
-v, --verbose
Display information useful for debugging.
--display=DISPLAY
X display to use.
AUTHOR
mango-lassi was written by Lennart Poettering <mzjro@0pointer.net>. Sven Herzberg did a friendly fork (as in: he asked Lennart) and con-
tinues to maintain mango-lassi.
SEE ALSO
Homepage: http://github.com/herzi/mango-lassi/
This manual page was written by Kartik Mistry <kartik@debian.org>, for the Debian project (and may be used by others).
May 20, 2010 MANGO-LASSI(1)