Sponsored Content
Full Discussion: adding 0 to a variable
Top Forums Shell Programming and Scripting adding 0 to a variable Post 302107144 by DukeNuke2 on Wednesday 14th of February 2007 05:55:57 PM
Old 02-14-2007
should have to do with that:
http://en.wikipedia.org/wiki/Data_type
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

adding contents of a variable to a command

hi all, i'm new to shell scripting, so i'm not sure how to work this. Is it possible to read in the contents of a variable and add it to a command? for example: ------------------------ #!/bin/sh set example = -dfr rm ${example} ------------------------ when i run the script, i want... (2 Replies)
Discussion started by: gammarays
2 Replies

2. UNIX for Dummies Questions & Answers

Adding PATH variable in the startup scripts

Hi, I got a error message The environmental variable AUTOSYS is not set ! I think I require to to add a path to PATH variable in the startup scripts in the home dir. I tried using set PATH= but it is not setting the PATH when i do the echo $PATH , i dont get the new PATH reflected, Is... (5 Replies)
Discussion started by: rajanishshetty
5 Replies

3. UNIX for Dummies Questions & Answers

adding PATH variable

Hello i use bash and i added a path variable for 2 files /rscr and /uscr in /etc/profile /rscr working fine but the other one shows command not found and when i try to type whereis for scripts in /rscr it shows them but the other one shows nothing... thanks :b: (3 Replies)
Discussion started by: wir3d
3 Replies

4. Shell Programming and Scripting

adding spaces for a variable value

Hi, i have to form the header and add fillers(spaces) to it. I have done something like this. i have added 10 spaces at the end HDR="AAAABBBBCCNN " echo $HDR >> file1.dat but the spaces are not being stored in the file. How to add the spaces. (2 Replies)
Discussion started by: dnat
2 Replies

5. Shell Programming and Scripting

adding value to variable using expr

for i `cat abc.txt` do m= `expr $i + 2` echo $m done i wrote this script to assing value to m. but i got the error "a.sh: 423: not found" please help me to sort out this issue (2 Replies)
Discussion started by: Kochu77
2 Replies

6. UNIX for Dummies Questions & Answers

Adding Two Decimals Together and Storing as a Variable

Hello, I'm writing a shell script which CATs a input file and subsequently runs an executable. Within each do-loop iteration the input file is changed. Here is where I'm running into trouble.... Lets say I want to add two decimals together: 1.25 + A A is a decimal with a range between... (2 Replies)
Discussion started by: modey3
2 Replies

7. Shell Programming and Scripting

Adding grep'd results in a variable

Here is one I am baffled with; I have not used unix for a while and now that I am back it has been fun remembering and I have enjoyed it, for the most past. this is in ksh. I need to search in a file for the line with X1 and cut columns 20-25, put them into a variable, added them (dollar... (3 Replies)
Discussion started by: CougarMutt
3 Replies

8. Shell Programming and Scripting

Adding Content to Variable (bash)

is this possible? its kind of like incrementing the value of a number in a variable. but in this case, instead of the value of the variable being a number, it's just contents/strings/characters/alpha-numeric etc. NOT a number. For instance: VAR=Tommy for all in $(blah blah) do ... (2 Replies)
Discussion started by: SkySmart
2 Replies

9. Shell Programming and Scripting

Adding more text to a variable

Is there a more simple way to add text to a variable I havevar="blue" and like to add green to getecho $var blue green Here is how I do it. var=$(echo "${var} green") ---------- Post updated at 13:23 ---------- Previous update was at 13:12 ---------- :o Uff Not always easy to see the... (2 Replies)
Discussion started by: Jotne
2 Replies

10. Shell Programming and Scripting

Adding variable number of space in between two string

Hi, I am looking for the way to add variable number of spaces between two string. e.g input line is a ,bb abc ,bcb pqr ,bfg My output should be something like this a ,bb abc ,bcb pqr ,bfg This text... (9 Replies)
Discussion started by: diehard
9 Replies
nerverot(6x)							XScreenSaver manual						      nerverot(6x)

NAME
nerverot - induces edginess in the viewer SYNOPSIS
nerverot [-display host:display.screen] [-foreground color] [-background color] [-window] [-root] [-mono] [-install] [-visual visual] [-db] [-no-db] [-colors integer] [-delay microseconds] [-count integer] [-line-width integer] [-event-chance fraction] [-iter-amt fraction] [-nervousness fraction] [-max-nerve-radius fraction] [-min-radius integer] [-max-radius integer] [-min-scale fraction] [-max-scale frac- tion] [-fps] DESCRIPTION
The goal of nerverot is to be interesting and compelling to watch, yet induce a state of nervous edginess in the viewer. This manpage describes v1.3 of the program. OPTIONS
nerverot accepts the following options: -window Draw on a newly-created window. This is the default. -root Draw on the root window. -mono If on a color display, pretend we're on a monochrome display. -install Install a private colormap for the window. -visual visual Which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual. -db -no-db Use double-buffering (or not, respectively). Double-buffering may make things look better for larger line widths and/or larger numbers of blots, but "better" may equate to yielding less of the desired edginess effect. You'll be calmer after watching the double-buffered variant; you're more likely to go into epileptic fits with it off. Hence, it is off (false) by default, resource doubleBuffer. -colors integer How many colors should be used (if possible). The colors form a smooth ramp between two randomly-chosen colors. Defaults to 4, resource colors. -delay microseconds The interframe delay, in microseconds. Defaults to 10000, resource delay. -max-iters integer The maximum number of iterations (frames) before a new model is generated. The actual number of iterations per model is a random number between 1 and this value. Defaults to 1200, resource maxIters. -count integer How many "blots" to draw at a time. This number may be rounded down to fit the particularly chosen model, and has a fixed minimum per-model. Defaults to 250, resource count. -line-width integer The width of the lines to draw. 0 means an optimized pixel-thick line. Defaults to 0, resource lineWidth. -event-chance fraction The chance, per iteration, for a life-altering event to occur (such as picking a new rotation target), in the range 0..1. Defaults to 0.2, resource eventChance. -iter-amt fraction The fraction of movement towards a target (such as rotation angle or scale) that happens per iteration, in the range 0..1. Defaults to 0.01, resource iterAmt. -nervousness fraction How nervous the drawing is, in the range 0..1. This is how jumpy the points on each blot are. Defaults to 0.3, resource nervous- ness. -max-nerve-radius fraction The maximum radius of blot nervousness, as a fraction of the radius of the blot, in the range 0..1. Defaults to 0.7, resource maxN- erveRadius. -min-radius integer The minimum radius for a blot, in the range 1..100. Defaults to 3, resource minRadius. -max-radius integer The maximum radius for a blot, in the range 1..100. Defaults to 25, resource maxRadius. -min-scale fraction The minimum overall scale of drawing, as a fraction of min(windowHeight,windowWidth), in the range 0..10. Defaults to 0.6, resource minScale. -max-scale fraction The maximum overall scale of drawing, as a fraction of min(windowHeight,windowWidth), in the range 0..10. Defaults to 1.75, resource maxScale. -fps Display the current frame rate and CPU load. ENVIRONMENT
DISPLAY to get the default host and display number. XENVIRONMENT to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. X RESOURCES
There are resource equivalents for each option, noted above. BUGS
nerverot should have more models. XDBE should be detected and used, if available. SEE ALSO
xscreensaver(1) COPYRIGHT
Copyright (C) 2000-2001 by Dan Bornstein. All rights reserved. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup- porting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. AUTHOR
Dan Bornstein <danfuzz@milk.com>. X Version 11 5.15 (28-Sep-2011) nerverot(6x)
All times are GMT -4. The time now is 12:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy