12-04-2010
loop difficulty
thanks very much for your help.It worked perfect.
other question if I want to make it accepts two or more variables without entering the number(just gives an option to entre three variable names),I mean entering values and testing them that are from the existence name.how can I do that?
regards
Last edited by samsami1971; 12-04-2010 at 11:46 AM..
9 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Hi,
I have a problem in pasting a url in the thread. I tried many a times and i keep failing.
Can u tell me what's wrong?
I go by the instructions that appear after clicking the http:// but still i fail. The link does not appear properly in the threads that i post.
Thanks,
Nisha (3 Replies)
Discussion started by: Nisha
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I would be very happy if someone could help me please. I am relatively new to UNIX, and still learning.
My understanding of things are:
Say I have a PC running Windows. This machine has a name. If I have 10 PC's, then I have 10 names, one for each PC. Each PC is independent of the other.... (4 Replies)
Discussion started by: ALon
4 Replies
3. UNIX for Dummies Questions & Answers
Hi
I am trying to set up two hosts in a reverse proxy. The reverse proxy already has 8 servers running perfectly, but they are all simply mapping pure addresses, which I have registered internally and externally.
The latest two I wish to add are a bit different, they are app servers, one... (1 Reply)
Discussion started by: rboekdrukker
1 Replies
4. Shell Programming and Scripting
Hi,
I am trying to upload a file to a SQL database table. The column type is IMAGE. I am looking for a solution to upload a word doc file. I tried 3 approaches.
1) my $fileToStore = "mytest.doc";
open IPFILE, "<", $name;
binmode IPFILE;
while (<IPFILE>)
{
$fileToStore .= $_;
}
close... (1 Reply)
Discussion started by: b.paramanatti
1 Replies
5. Shell Programming and Scripting
a file containing following data (part of it)....
1907594 201012 31 11
5837737 201012 41 18
257402.88 201101 31 11
7500 201101 33 1
115618.5 201101 41 11
556330 201102 31 12
481783.5 201102 41 20
2827732.13 201103 31 71
85253 201103 33 2
4479588.07 201103 41 90
7120 201104 21 1
... (4 Replies)
Discussion started by: guptam
4 Replies
6. Shell Programming and Scripting
hello folks,
i am stuck with this awk command. i need to calculate the sum of a column of values on a flatfile and i am using the following command :
awk -F"|" '{x += $10} END {print "Sum: "x}' standard_csv_file1.out
that flatfile contains 180 fields and i am getting the... (5 Replies)
Discussion started by: jdsony
5 Replies
7. Shell Programming and Scripting
Hi,
I have used the following command to get result using some program and got desired output but I am unable to understand the last part: sort -k5,5 -rn|head -n 10
grep Centre groups.dat |sort -k5,5 -rn|head -n 10
Please guide.
Thanks (2 Replies)
Discussion started by: bioinfo
2 Replies
8. UNIX for Dummies Questions & Answers
Hi ,
i have a shell script with the first two lines as
#! /bin/ksh
set -x
when i try opening the file from unix using the command 'sh filename.sh' , i am getting the below error :
invalid optionline 2: set: -
Pls help
Use code tags for you code and data... (1 Reply)
Discussion started by: Rajankum
1 Replies
9. Shell Programming and Scripting
I have not been able to append the contents of many files into one file. I have executed the CAT command shown below separately substituting an actual path and file name for the array variable to verify that I have the syntax correct. The bottom line - nothing is happening with CAT. I am running... (16 Replies)
Discussion started by: demmith
16 Replies
GOMOKU(6) BSD Games Manual GOMOKU(6)
NAME
gomoku -- game of 5 in a row
SYNOPSIS
gomoku [-bcdu] [-D debugfile] [inputfile]
DESCRIPTION
gomoku is a two player game were the object is to get 5 in a row horizontally, vertically or diagonally on a 19 by 19 grid. By convention,
black always moves first. With no arguments, gomoku will display a playing board and prompt for moves from the user. Valid moves are a let-
ter for the column and a number for the row of an empty board location. Entering ``quit" or ``resign" will end the game. You can save the
current state of the game by entering ``save" and supplying a file name when prompted. The optional file inputfile can be used to restore a
saved game.
The options are:
-b This option sets background mode. Input moves are read from standard input, the computer picks a move, and prints it to standard
output. The first input line should be either ``black" or ``white" to specify whether gomoku has the first move or not respectively.
This option was intended for game tournaments where a referee program handles the board display and pits one program against another.
-c Computer versus computer. gomoku will play a game against itself. This is mostly used for testing.
-d Print debugging information. Repeating this option more than once yields more detailed information.
-D debugfile
Print the debug information to debugfile instead of to the standard output.
-u User versus user. This is mostly used for testing.
AUTHOR
Ralph Campbell
ACKNOWLEDGEMENTS
The board display routines were based on the goref program written by Peter Langston.
BSD
August 4, 1994 BSD