05-24-2007
Ofcourse it is a homework!!!!
Is that so bad to ask for directions? I don't want you to solve the exercise!
I just want you to tell my how to add the numbers of the third column
Thank you in advance!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
how can I write a small script to run the following statement and output the result into check_result.txt
select /*+RULE*/ tapname from typetbl where tapname like 'AA%' and rejectcode=9;
Normally, I just type sql and get into SQL> (2 Replies)
Discussion started by: happyv
2 Replies
2. Programming
Dear Friends,
I m beginner unix programmer. I want to know, how to read and write directory or file contents in c++ ? (3 Replies)
Discussion started by: namrata5
3 Replies
3. Shell Programming and Scripting
Hi,
root@server] df -h
121G 14G 101G 12% /home
147G 126G 14G 91% /backup
We having our site files and images are storing in
/backup/home/user/files/ through symbolic link created in /home directory pointing in /backup directory as following.
root@server] cd /home... (1 Reply)
Discussion started by: mirfan
1 Replies
4. Shell Programming and Scripting
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies
5. UNIX for Dummies Questions & Answers
Input
1 2N 2N
1 2N 2N
1 2N 2N
1 2N Ateus
1 3 Mobiles 3M-100
1 3 Mobiles 3M-100
1 3 Mobiles 3M-100
1 3GNET 3gnet
1 3GNET 3gnet
1 3GNET G2828
1 3GNET G2828
1 3GNET G2829
1 3GNET G2829
1 3GNET G2829
OutPut should be
3 2N 2N
3 3 Mobiles 3M-100
2 3GNET 3gnet (4 Replies)
Discussion started by: gagan2010
4 Replies
6. Shell Programming and Scripting
Hi
What is the syntax for if statement using && and || operator?
if && ] ||
here its giving me an error to this if statement
any suggestion?? (2 Replies)
Discussion started by: Avi
2 Replies
7. Shell Programming and Scripting
Hi,
I have a bash script that currently holds some data. I am trying to write all the contents to a file called temp.txt.
I am using
echo ${array} > temp.txt
The problem that I am experiencing is that the elements are being written horizontally in the file. I want them written... (5 Replies)
Discussion started by: Filter500
5 Replies
8. Shell Programming and Scripting
pcmpath query device |awk 'BEGIN{print "DEVICE NAME\tSERIAL"} /DEVICE NAME/ {printf "%s\t", $5; getline; print substr($2, length($2)-3)}'
This script returns output like below to pull out "DEVICE NAME SERIAL".
......
hdisk28 110B
hdisk29 1112
hdisk30 1115
hdisk31 1116
hdisk32 1128... (2 Replies)
Discussion started by: Daniel Gate
2 Replies
9. UNIX for Dummies Questions & Answers
Hi guys,
How to write terminal contents into a file in Unix operating system
Actually I created GUI by using Gtk2-perl. I want to display data on GUI whatever the contents writing on terminal. So which command I have to use and where that command to be run I mean in shell script or Perl... (2 Replies)
Discussion started by: kiran425
2 Replies
10. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a script called user.sh that parses the name and password of given in a file (user.txt) and creates the user... (1 Reply)
Discussion started by: Nygenesis
1 Replies
Pente(6) Games Manual Pente(6)
NAME
pente - Game of five in a row
SYNOPSIS
pente -help
pente [ <options> ]
HOW TO PLAY PENTE
Pente is the American name of a Japanese game called ``ni-nuki'', which is a variant of the ancient game ``go-moku''. Pente is played on a
19x19 grid with stones of two different colors. Each player chooses one set of stones; then the players take turns placing their stones on
any unoccupied intersection until one player wins.
There are two ways to win. If a player makes five or more stones in a straight line (across, down, or diagonally), then that player wins.
Or, if a player captures five pairs of his or her opponent's stones, that player also wins.
Stones may be captured in pairs only. To capture a pair of stones, a player must place one stone on either side of the pair.
The first move is placed in the center of the board. To make up for the advantage of going first, the first player's second move must be
at least three spaces from their first. This sounds confusing, so don't worry about it; just play, and if the computer won't let you move
where you want on your second move, play somewhere farther away.
That's it! These directions are pretty terse, but if you have an X display there are better directions available through the ``help'' but-
ton. You can also try playing a few games; the rules are simple enough that you can pick them up easily just by playing.
THE PROGRAM
This program has support for many different display types. Depending on the compile options used, X Windows, Curses, and a plain text for-
mat may be available. The exact display type used will be chosen by the program, or it may be selected with a command line switch. Infor-
mation on the switches is available with pente -help.
Most of the command line switches can also be set with the ``setup'' window of the X interface. Any changes you make there will be saved
in the .pente.ad file and remembered the next time that you play.
The command line switches can also be set with an X default. For example, if you want to set black and white to be the default mode, you
can run pente with pente -nocolor, or you can add pente*color: 0 to your X defaults, or you can just turn off color in the ``setup'' win-
dow.
Pente will store a new .pente.ad file every time you run it. In this file it will save the current state of Pente. This is handy; you
don't normally have to set command line switches since Pente will remember them in the .pente.ad file.
BUGS
Sometimes the .pente.ad file gets some bad data in it. Just delete the file and then you can start from scratch again.
AUTHOR
Bill Shubert (wms@igoweb.org)
French text by Eric Dupas (dupas@univ-mlv.fr)
Italian text by Andrea Borgia (email: borgia@cs.unibo.it; homepage: http://www.cs.unibo.it/~borgia)
31 July 2001 Pente(6)