08-07-2012
vgersh99's second option ought to do what you want. Just set n to 3 or 4 or whatever you want instead of 2.
10 More Discussions You Might Find Interesting
1. Linux
i'm a grad student taking a UNIX course and a networks course (i have a background in C++ and JAVA). i'm trying to combine the two classes.
My questions stems from a networks programming homework assignment below:
"Using the operating system and language of your choice, develop a program to... (5 Replies)
Discussion started by: trostycp
5 Replies
2. Linux
Hello,
I am just a new comer in this forum, looking for help in Shell Programming in Linux, bash/csh/ash!
Is there anyone who do can help so far, then, I will be grateful very very much (2 Replies)
Discussion started by: Raihan
2 Replies
3. Programming
Hi all,
I am trying to figure out a way to write a cprg that masks SIG_PIPE & SIG_ABRT signals,check if they are pending , if they are pending unmask and service them.
But so far i have no luck!!!
Could you please let me know how to write it?
Thanks (3 Replies)
Discussion started by: wrapster
3 Replies
4. Programming
Hi all,
I am a newbie to unix programming using C..
So i would like to have a few simple C programs to start off with..
I wanted programs on learning ,
abort,kill and raise,alarm and pause,I would also like to know how to use the vfork() in a prg
It would be really great if i can have... (1 Reply)
Discussion started by: wrapster
1 Replies
5. Programming
Good evening everyone! :)
I'm doing a small client / server application for sharing files in C, and I am trying to implement the following:
The client of my application sends to the address 255.255.255.255 a message requesting a particular file.In the network there is only one server,... (1 Reply)
Discussion started by: esmeco
1 Replies
6. Shell Programming and Scripting
Hi,
im working on an assignment (airline ticketing system). im kinda having problems with the search function. i want users to be able to search by departure time or by flight. however, my output displays the whole chunk of data instead of what they are supposedly searching for. appreciate if... (1 Reply)
Discussion started by: crazybean
1 Replies
7. Shell Programming and Scripting
Hello,
I am just a beginner in Awk, and I use it occasionally, to manipulate large data files. I have faced with the following problem.
I have a file with a several thousands columns. It has a header, and then row after row of numerical data, except the first column, which contains symbols.... (3 Replies)
Discussion started by: scigeek
3 Replies
8. Shell Programming and Scripting
Hi,
I am novice in PERL enviornment. I have a text files withso many entries in rows and columns. I have to pick up entries
named as "Uniprot ID" in the file and create a new text file with list of particular Uniprot ID entries. Can anybody guide regarding this.. I came to know abut fgrep... (1 Reply)
Discussion started by: manigrover
1 Replies
9. Shell Programming and Scripting
Hi all,
I have written a wrapper script in Perl which will be used on AIX, Linux and Windows and I do not want to change any code for the needs for a specific OS if avoidable.
It works fine so far on all 3 OSes, not blowing up any stacks any more, but I am unsure how to handle writing log files... (7 Replies)
Discussion started by: zaxxon
7 Replies
10. Shell Programming and Scripting
Hi All,
I am new to AWK programming. I have the following for loop in my awk program.
cat printhtml.awk:
BEGIN
-------- <some code here>
END{
----------<some code here>
for(N=0; N<H; N++)
{
for(M=5; M<D; M++) print "\t" D "";
}
-----
}
... (2 Replies)
Discussion started by: ctrld
2 Replies
puzzle(1X) puzzle(1X)
NAME
puzzle - 15-puzzle game for X
SYNOPSIS
puzzle [-option...]
OPTIONS
This option specifies the display to use; see X(1X). This option specifies the size and position of the puzzle window; see X(1X). This
option specifies the size of the puzzle in squares. This option specifies the speed in tiles per second for moving tiles around. This
option specifies an image file containing the picture to use on the tiles. Try "mandrill.cm." This only works on 8-bit pseudo-color
screens. This option indicates that the program should create its own colormap for the picture option.
DESCRIPTION
Executing puzzle with no arguments plays a 4x4 15-puzzle. The control bar has two boxes in it. Clicking in the left box scrambles the
puzzle. Clicking in the right box solves the puzzle. Clicking the middle button anywhere else in the control bar causes puzzle to exit.
Clicking in the tiled region moves the empty spot to that location if the region you click in is in the same row or column as the empty
slot.
BUGS
The picture option should work on a wider variety of screens.
COPYRIGHT
Copyright 1988, Don Bennett.
SEE ALSO
X(1X)
AUTHOR
Don Bennett, HP Labs
puzzle(1X)