Adding same value to variables in does each repetition of command
So, I have this command:
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 anyone know some scripts to generate random number without repetition using bash; for example generate 10 different random numbers.
Thanks (8 Replies)
Hi All,
I'm just new to UNIX, does anyone know how to create a batch file in UNIX that does the following routines:
1.) process multiple files in a directory
in DOS, I set my sample input file as: set INPUTFILE=%1
in UNIX>> ????
2.) every file to be processed by executing a program... (1 Reply)
I have a structure which contains n number of elements. For example:
stFruits : apple, grapes, strawberry, pear, kiwi, melon, papaya, mango, orange, sweetlime ..... etc
Now i have to write a for loop as follows:
int i;
int j;
j=stFruits.apple+stFruits.grapes+stFruits.pear+.... and so... (3 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)
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)
How can I get all combinations of 5 words from 10 words.
For example I have 3 words and I want to get all combinations of 2 words.
"A", "B", "C" it would like AB, BC, AC.
Maybe you know some usefull code or example.
Thanx a lot.
P.S. Sorry if I'm not right enough cause I don't know English... (2 Replies)
cat mylist
First_NAME Gender
Mike M
Sara F
Raya M
Sara F
Fibi F
Mike M
Mike M
Micheal M
can someone please help me to get a script to cacluate the number of repetions for each (First name... (3 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)
Suppose I have a word which is repeating in a string continuously. I have a set of intervals. Then how do I find the number occurrences of that word in those intervals and their location of occurrences. For example - Suppose there is a huge string anfie.......sirn of 10000 letters. Now the word... (2 Replies)
Discussion started by: ANKIT ROY
2 Replies
LEARN ABOUT DEBIAN
img-gif
img-gif(3tk)img-gif(3tk)NAME
img-gif - Img, Graphics Interchange Format (gif)
SYNOPSIS
package require Tk
package require img::gif ?1.3?
image create photo ?name? ?options?
DESCRIPTION
The package img::gif is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require Img, or on its
own, via package require img::gif.
Like all packages of Img it does not provide new commands, but extends the existing Tk command image so that it supports files containing
raster images in the Graphics Interchange Format (gif). More specifically img::gif extends Tk's photo image type.
The name of the new format handler is gif. This handler provides new additional configuration options. See section GIF OPTIONS for more
detailed explanations.
All of the above means that in a call like
image create photo ?name? ?options?
[1] Image data in gif format (options -data and -file) is detected automatically.
[2] The format name gif is recognized by the option -format. In addition the value for the option is treated as list and may contain
any of the special options listed in section GIF OPTIONS.
GIF OPTIONS
The handler provides two options, one for reading from a GIF image, the other influencing the writing of such.
-index n
This option is for reading from GIF files containing more than one image (animated GIF's, GIF movies. When specified it will read
the n'th image in the data. The first image is at index 0 and will be read by default, i.e. when the option is not specified.
-interlaced bool
If the value of this option is set to true the image will be written using the interlaced sub-format of GIF. The default is to write
non-interlaced files. This option is not implemented yet.
IMAGE COMPRESSION
Instead of LZW the run-length encoding of Hutchison Avenue Software Corporation is used, also known as miGIF compression. The miGIF com-
pression routines do not, strictly speaking, generate files conforming to the GIF spec, since the image data is not LZW-compressed (this is
the point: in order to avoid transgression of the Unisys patent on the LZW algorithm.) However, miGIF generates data streams that any rea-
sonably sane LZW decompresser will decompress to what we want.
TRANSPARENCY
If you want to write images to disk which contain transparency information (e.g. GIF89) you need at least Tk 8.3.
SEE ALSO
img-bmp, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-pixmap, img-png, img-ppm, img-ps, img-sgi, img-sun, img-tga, img-tiff, img-
window, img-xbm, img-xpm
KEYWORDS
gif, image handling, tk
COPYRIGHT
Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.com>
Img 1.3 img-gif(3tk)