10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please bear with me, I'm a beginner but have had some experience and decent knowledge to understand things as I read them and I'm in the process of trying to learn more. I recently inherited a UNIX server which has a bash script which is part of a crontab schedule that needs to be modified (or... (3 Replies)
Discussion started by: Danylko
3 Replies
2. Shell Programming and Scripting
Hi all,
I have drill to do and I'll very appreciate your help:
Please create a simple CSV file as follow (3 columns and 4 rows):
A,B,C
A,”B,C”,D
“A,B”,C,D
o A,B,”C,D”
- Please refer to the comma between the quotation marks as a parameter and not as a separator.
- Please provide... (3 Replies)
Discussion started by: elior
3 Replies
3. Shell Programming and Scripting
Howdy folks,
I'm trying to craft a log file summarisation tool for an application that creates a lot of duplicate entries with only a different suffix to indicate point of execution. I thought I'd gotten close but I'm clearly missing something.
Here's a genericized version:
A text_file... (3 Replies)
Discussion started by: mthespian
3 Replies
4. Shell Programming and Scripting
Hi Guys, I want to create a shell script to run multiple jobs in sequence.
Explaination -
If I were to run each jobs individually I would have gone to folder - "abin"(where my shellscript is place) as follows
cd abin
abin > runappeng.sh abc001
Now, I have list of programs which are like... (8 Replies)
Discussion started by: chaits84
8 Replies
5. Shell Programming and Scripting
Hi,
I am newbie in shell scripting
I have a file name like simple.txt which comes from Mainframe systems onto windows dir every 15 minutes daily. File name is same. Every 15 minutes it updates.
I need to write shell script to check if the file arrived every 15 min or not.
If the new file... (4 Replies)
Discussion started by: chinniforu2003
4 Replies
6. Shell Programming and Scripting
Could someone please recommend a very good shell scripting book for me. I would be starting a new job that would require a very good understanding of shell scripting. Please help. (3 Replies)
Discussion started by: ayoka
3 Replies
7. Shell Programming and Scripting
hi all,
i am just getting in to bash scripting, so don't be too harsh...
i've created this little backup script, and it's just awfull... ugly, doesn't work like I want it to, the works. anyways, i was hoping some of you might help me improve it and learn a little in the process.
what i... (13 Replies)
Discussion started by: jmd9qs
13 Replies
8. Shell Programming and Scripting
I have written a script that will email a generic user when a device is "offline". I would like to enhance this by having the script lookup a contact's email and automatically add it to the MAIL_LIST. I am trying to lookup and return data based on a field common in two files
File 1 ... (0 Replies)
Discussion started by: irishluck66
0 Replies
9. UNIX for Dummies Questions & Answers
I'm relatively new at this scripting game, just need to learn some basic stuff for data handling.
My current need is to write a script that loops through a textfile of filenames, and for each file removes the first line and re-writes that file to a new name.
In fact I could do with knowing... (1 Reply)
Discussion started by: mattyjim2
1 Replies
10. Shell Programming and Scripting
Hi there,
I am a student and currently working on a project. I have a file that contains about 50 filenames. (1.txt, 2.txt, 3.txt ...).
I would like to know how can I store these filenames into a variable using a loop?
I would appreciate if anyone can help me. Thank You.
Regards,
Bib (4 Replies)
Discussion started by: coolbib
4 Replies
MANCALA(6) Games Manual MANCALA(6)
NAME
mancala - simple board game for human player and computer
SYNOPSIS
mancala level-top level-bottom number-of-stones
xmancala [-stones N]
mancala-text
DESCRIPTION
This manual page documents briefly the mancala and xmancala commands. This manual page was written for the Debian GNU/Linux distribution
because the original program does not have a manual page.
mancala runs the game in the console, while xmancala is a fancy X-interface. mancala-text is a shell script to run mancala in a console
from the Debian menu system.
When run as xmancala the program has no options, and should be self-explanatory. Built in buttons and sliders control the difficulty level
(default 4), and bring up the rules of the game.
The console version, mancala, has no access to the rules, and the difficulty level can only be set on the command line (see below). When
it is your turn to play, you enter the letter of the cell that you want to move the stones from, A to F (case insensitive). The rules are
contained in the file /usr/share/doc/mancala/RULES.
OPTIONS
When run as mancala, the program normally takes two arguments, level-top and level-bottom, one of which should be 0 to represent the human
player (you), and the other should be in the range 1 to 9, to represent the skill level of the computer player. The first argument repre-
sents the top player, who starts.
Alternatively, you can give a single argument or two non-zero arguments, to watch the computer playing itself, or two zero arguments, to
play against another human player on the same console.
For the console version, you can add a third argument to specify the number of stones per hole. For xmancala you can specify the number of
stones per hole using the -stones N argument.
On Debian systems, the shell script mancala-text is provided to facilitate running mancala in a console, from the Debian menu system. This
script will run mancala with a difficulty level of 4, and will pause when the game is finished, to enable the player to view the final
screen.
SEE ALSO
<http//en.wikipedia.org/wiki/Mancala>
AUTHOR
This manual page was written by Andrew Gray <ajpg@debian.org> for the Debian GNU/Linux system (but may be used by others).
13 March 2001 MANCALA(6)