Sponsored Content
Top Forums Shell Programming and Scripting Program for pairing together to print outputusing perl Post 302365187 by majormark on Monday 26th of October 2009 09:03:12 AM
Old 10-26-2009
You can put the first line in an array and than take the first "word" beginning with the second line and compare it against each element.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unix Program for data and print

Hi Is there any UNIX program (or Mac OSX) that works with delimitted data files, manipulates the data into a letter / layout form and can then send multiple personalised forms to multiple printers? If this is not the right forum, can anyone point me in the right direction? Thanks Mike Taylor (5 Replies)
Discussion started by: miketaylor
5 Replies

2. Shell Programming and Scripting

Linux:Program exit with displaying a print feature

hi All I have a scritp running which connects to a local host and then gets a value from a field and then ftp that value to antoher server. It is running fine, and from crontab it gives the output to a file, the problem is sometime it doesnt run but if i check the output file it does not show one... (0 Replies)
Discussion started by: imran721
0 Replies

3. Shell Programming and Scripting

Perl :How to print the o/p of a Perl script on console and redirecting same in log file @ same time.

How can i print the output of a perl script on a unix console and redirect the same in a log file under same directory simultaneously ? Like in Shell script, we use tee, is there anything in Perl or any other option ? (2 Replies)
Discussion started by: butterfly20
2 Replies

4. Homework & Coursework Questions

Calling compiled C program with Perl program

Long story short: I'm working inside of a Unix SSH under a bash shell. I have to code a C program that generates a random number. Then I have to call the compiled C program with a Perl program to run the C program 20 times and put all the generated random #s into a text file, then print that text... (1 Reply)
Discussion started by: jdkirby
1 Replies

5. Linux

Perl program to print previous set of lines once a pattern is matched

Hi all, I have a text data file. My aim here is to find line called *FIELD* AV for every record and print lines after that till *FIELD* RF. But here I want first 3 to four lines for very record as well. FIELD AV is some where in between for very record. SO I am not sure how to retrieve lines in... (2 Replies)
Discussion started by: kaav06
2 Replies

6. Shell Programming and Scripting

Pairing up numbers

Hi, Im trying to script the following logic but having some difficulties and wonder if you can help. Have tried to use "cut" to cut pairs but doesn't appear to do what i need when there are more than one pair. Also "wc -c" doesn't appear to be so easy to know which characters to strip of at I... (3 Replies)
Discussion started by: bunti
3 Replies

7. Programming

Program wont print prime numbers

The problem I'm having is that when you put in the two numbers the answer is just prime.... nothing. I cannot figure this out ive been working on this forever, can someone please god just tell me how to fix this without encrypted "hints". #include <iostream> #include <cmath> using... (3 Replies)
Discussion started by: c++newb
3 Replies

8. Hardware

Bluetooth Dongle Pairing but Not Connecting (Linux)

I have been trying to get bluetooth working correctly on Linux for a while now. I am using two systems that are having identical issues: Linux Mint 15 64-bit & Ubuntu 13.04 32-bit. Both are using the Cinnamon desktop. I have the following bluetooth dongle: ... (6 Replies)
Discussion started by: Deluge
6 Replies

9. Shell Programming and Scripting

Pairing the nth elements on multiple lines iteratively

Hello, I'm trying to create a word translation section of a book. Each entry in the word list will come from a set of linguistically analyzed texts. Each sentence in the text has the following format. The first element in each line is the "name" of the line (i.e. "A","B","C","D"). The... (12 Replies)
Discussion started by: John Lyon
12 Replies

10. Shell Programming and Scripting

Perl program get a response before the program quits

I created a program, so a kid can practice there math on it. It dispenses varies math problems and the kid must input an answer. I also want it to grade the work they have done, but I can't find the best place for it to print out the grade. I have: if ( $response =~ m/^/ ) { $user_wants_to_quit... (1 Reply)
Discussion started by: germany1517
1 Replies
TRICENSUS-MPI-STATUS(1) 					The Regina Handbook					   TRICENSUS-MPI-STATUS(1)

NAME
tricensus-mpi-status - Summarise the log file of an MPI census of triangulations SYNOPSIS
tricensus-mpi-status log-file DESCRIPTION
This utility reads a log file produced by a tricensus-mpi job, and writes a human-readable summary to standard output. It can be used for either jobs that have finished or jobs that are still running, and it can happily read logs that have been compressed using gzip or bzip2. The logs produced by tricensus-mpi are very detailed, including timestamps, details of which slaves have taken which tasks, and how many triangulations each task has produced. This utility distills this detailed log into an easy-to-read summary, with one line for each face pairing. Output will only appear for face pairings that have been examined so far (which includes face pairings still being processed). This output will include: o whether processing for each face pairing has finished; o the number of triangulations found so far for each face pairing; o the number of subsearches generated and/or finished for each face pairing (only relevant when running in subsearch mode). The final line of output will list the total number of triangulations found so far, whether the census has finished, and if not, when the last log entry was written. For further explanation of the terminology used above, see the tricensus-mpi reference. EXAMPLES
See the tricensus-mpi reference for a sample session in which tricensus-mpi-status is used. MACOS X AND WINDOWS USERS
This utility is not shipped with the drag-and-drop app bundle for MacOS X or with the Windows installer. SEE ALSO
tricensus-mpi, regina-gui. AUTHOR
This utility was written by Benjamin Burton <bab@debian.org>. Many people have been involved in the development of Regina; see the users' handbook for a full list of credits. 28 May 2012 TRICENSUS-MPI-STATUS(1)
All times are GMT -4. The time now is 06:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy