03-31-2010
Thank you guys,
To radulov: your solution is so similar to mine, don't you know why mine is not working ? Seems more similar to me
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am using getops to get the arguments passed by the command line.
However, I need to specify some rules regarding the parameter sent.
For eg:
I have script called MyScript which accept parameter d, I, E, r, u
so the usage should be like this:
MyScript
So far, I finished... (2 Replies)
Discussion started by: stefan_hery
2 Replies
2. UNIX for Dummies Questions & Answers
My goal is simply to output a listing of all files in a directory and all subdirectories, one per line, ****with their full path****.
The *** part is what I can't figure out. I can get one on a line and I like having the extra info, so I'm using ls -Rl right now.
But what I get is just the... (2 Replies)
Discussion started by: bostonrobot
2 Replies
3. UNIX for Advanced & Expert Users
What is Stream Devices and Stream pipes?
Explain Advanced I/O ? (1 Reply)
Discussion started by: thangappan
1 Replies
4. Shell Programming and Scripting
I want to print:
WELCOME TO MY WORLD
Where "WELCOME TO MY WORLD" will be in green (32) and the underline will be in yellow (33). How can i do the above using printf.
printf "`tput smul`\033
leaves both the text and the underline in green. (3 Replies)
Discussion started by: proactiveaditya
3 Replies
5. Programming
Simple question , what good book is next step in learning C.
I finished with K&R and I want to go to the next step , so if someone has a good book please share title :D
I looked for Advanced C programming by example but it is too expansive 400$ on Amazon :(
So please tell me (7 Replies)
Discussion started by: solaris_user
7 Replies
6. UNIX for Advanced & Expert Users
Hi All, I am trying to download large no of data using wget. the URLS are saved in a file. I want to want for a few seconds after every URL is downloaded so i saw the option -w with wget but it does not seem to work. Can any one give me a working usage. wget -i ../file1t -o ../Outlog.log -N -S... (2 Replies)
Discussion started by: johnasvini
2 Replies
7. Shell Programming and Scripting
I have thousands of files in HTML that looks like this:
....
....
....
<!-- table horaire --> <!-- table horaire -->
<table border="0" cellspacing="0" cellpadding="0" class="tblHoraires" summary="Table des horaires de la ligne 12">
<tr>
<th scope="row"... (13 Replies)
Discussion started by: charafantah
13 Replies
8. UNIX for Dummies Questions & Answers
Hello
I'm searching some kind of example (or ready-made solution, but I don't really want it, because I want to learn awk more), to make something like a parser in awk for something like this (I put example, because I don't really know how to explain this):
line1=1
line2=0
line3=1... (23 Replies)
Discussion started by: jormung
23 Replies
9. Shell Programming and Scripting
Hi!
I have a difficult problem, to step up a unknown version number in a text file, and save the file. It would be great to run script.sh and the version gets increased.
Example the content of the textfile.txt
hello
version = x
bye
This include three steps
1. First find the char after... (2 Replies)
Discussion started by: Beachboy72
2 Replies
10. Shell Programming and Scripting
Hi,
i need to automate installation (console) of product and found except as solution.iam new to expect and know basics of expect.
i am struck with the following cases and need help for them to continue:
1) in every screen of installation at the end we have kind of buttons which we need to... (7 Replies)
Discussion started by: sai Harika
7 Replies
LEARN ABOUT DEBIAN
xdemineur
XDEMINEUR(6x) XDEMINEUR(6x)
NAME
xdemineur - X11 minesweeper game
SYNOPSIS
xdemineur [-v] [-display displayname] [-geometry geom] [-m mines]
DESCRIPTION
Xdemineur is a minesweeper game for the X Window System.
The object of this game is to find the location of the mines hidden in the minefield and to mark their location by placing a warning flag.
You have exactly as many flags as there are mines. The number of flags that remain to be placed is displayed in the top left corner of the
window and a timer is displayed in the top right corner.
The game is played using a three buttons mouse, as usual with the X Window System. The left button (button 1) is used to uncover the
square on which you click (hoping that a mine is not hidden there). The number displayed in an uncovered square indicates how many mines
are located around this square (for example, a 3 means that there are three mines within the 8 surrounding squares). The whole game relies
on the right use of these numbers. The right button (button 3) is used to place a flag on a square (this indicates that there is a mine
here). If you click again with the right button on a square that has a flag, the flag is changed into a question mark: this is useful if
you are trying to guess the possible location of some mine, you can use question marks to think about it. One more click with the right
button and the question mark disappears. Clicking with the middle button (button 2) on an uncovered square which has all its flags placed
around uncovers the surrounding cells which have no flags (this will save a lot of time).
Finally, to start a new game, just click on the yellow face above the minefield.
OPTIONS
-v Print out version number and copyright notice then exit.
-display displayname
This option specifies the name of the X server to use. See X(1).
-geometry geom
This option specifies the initial size and location of the window. See X(1). The size is expressed in number of columns times num-
ber of rows. The default is 30x16. The minimum number of columns is 12.
-m mines
This option specifies the number of mines in the minefield. If there are more mines than squares in the minefield, the default
mine number is used.
BUGS
Please report any bug you could find in xdemineur to <babafou@babafou.eu.org>. Also, you should tell me the customizations you may have
done, such as adding new functions to the game or making modifications to allow the game to run on your system.
COPYRIGHT
Copyright (C) 1993-1999 Marc Baudoin <babafou@babafou.eu.org>
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, pro-
vided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup-
porting documentation. The author makes no representations about the suitability of this software for any purpose. It is provided "as is"
without express or implied warranty.
AUTHOR
Marc Baudoin <babafou@babafou.eu.org>
XDEMINEUR(6x)