The variables are not used correctly, so give this a try instead :
Code:
#!/bin/sh
#set -x
if [ $# -ne 1 ]; then
echo "usage: help.sh LIMIT"
exit
fi
LIMIT=$1
echo "LIMIT =" $LIMIT
SUM=0
while [ $SUM -lt $LIMIT ]
do
read -p "Please enter a number: " I
SUM=`expr $SUM + $I`
echo "I = $I and SUM = $SUM"
done
I am trying to learn how to use multiple modules and hearder files. I have tried a little experiment but cannot get it to work. Here is my code and compilation attempt. Any help with finding my problems appreciated.
The main function (main01.c) calls a function located in another file... (9 Replies)
How to make this script?
1. Write a portable bash shell script called change_password.bash that will
prompt the user for a password. Use a series of if statements to test if:
1.
The password is NOT 6 or more characters
2.
The password does not contain at least 3 consecutive letters... (1 Reply)
Hello Friends,
I am learning Perl now. I have a small query.
I have a directory Z with file name Z.txt.
I would like to copy this file Z.txt to 3 new dir with new filenames as follows
dir 1 1.txt
dir 2 2.txt
dir 3 3.txt
I would like to then open 1.txt from dir 1 and edit the first... (0 Replies)
Hello all
I am having problems using a bash script to read the input from the user and checking that its a valid number. I only want the user to input a maximum of a 3 number string (321 , 521 , 871 etc.). Anything longer or that includes a chararcter or symbol will display an error message.
... (8 Replies)
Hello, I am new to the Bash scripting language, and was given a tutorial page on how to setup a file. However I am trying to use cygwin to run this file and it is not working.
$ vi averagetime.sh
#
#
#
echo "Enter Dictorinary File Text "
read dict
echo "Enter Grid Name"
read grid... (13 Replies)
I am using the following code:
if ; then
I am getting an error saying line 12:
The code is supposed to examine whether the filename read into $FILE includes the string IMG*. I do have a fi later in the script, but I must be missing something obvious. Can anyone help? (3 Replies)
Hi,
I have used pdftotext with good results in the past, but today for some reason I keep getting the same error message.
My command is as follows:
And the error message is
I am using Vmware player with Ubuntu server, but I don't think that is causing this issue as I have been using... (2 Replies)
Hi guys,
I have the following code:
int main(int argc, char *argv)
{
int pid1,pid2,i=0;
pid1=fork();
i+=2;
if(!pid1) i++;
if(i%3) pid2=fork();
if (pid2==0)
{
printf("sea \n ");
i-=1;
}
if(i>=2)... (4 Replies)
Discussion started by: pfpietro
4 Replies
LEARN ABOUT DEBIAN
uligo
uligo(6) Games Manual uligo(6)NAME
uligo - tsumego (go problems) practice tool
SYNOPSIS
uligo
DESCRIPTION
To get stronger at go, it is essential to develop one's reading ability. That is why professionals recommend to study life and death or
tesuji problems. uliGo is a program that allows you to do that: basically, the computer displays a problem, and asks for the answer. You
enter the first move, the computer responds, and so on until you reach the final solution or enter a wrong move.
USAGE
The basic operation of uliGo is simple. Click the right arrow to view a problem, and then click where you think the right answer is. The
Documentation item in the Help menu contains the full documentation for uliGo, such as configuring the timer or the order the tsumego are
displayed in.
By default, problems are presented in random order, with the colors and orientation of the problem randomly chosen.
FILES
~/.uligo
This directory stores information about how many problems you've solved, and SGF files you've downloaded yourself.
AUTHOR
Ulrich Goertz <uligo@g0ertz.de> is the author of uliGo. Joe Wreschnig <piman@debian.org> wrote this manual page for the Debian operating
system, but it may be used by others.
SEE ALSO
The uliGo website at http://www.u-go.net/uligo/ contains more (unclearly licensed) problems sets that cannot be included with the Debian
package.
April 25th, 2003 uligo(6)