File Comparison

2003-09-04 Thread Kenneth Jideofor [ MTN - Ikoyi ]
Title: File Comparison Hi Guys, I have two files, nut.dat and data.dat. The first file, nut.dat, contains lines of eleven digit figures; each line in this file is an eleven-digit figure. The second file, data.dat, contains lines of spaced figures; each line having four groups of

Date Conversion in Perl

2003-01-29 Thread Kenneth Jideofor \[ MTN - Ikoyi \]
Hi, Given a number of days, it is expected to determine the real date from Jan 1, 1970. The real date should be in the following format: Year-Month-Day. How do I implement this task using Perl. For example, write a Perl script to convert 12016 days to its real date from Jan 1, 1970. Regards,

File Formatting in Perl

2003-01-29 Thread Kenneth Jideofor \[ MTN - Ikoyi \]
Hi all, I have file whose content is arranged in rows of two lines, each row-pair separated from the next by a line-space. I want to rearrange the file in a two-column format such that all the entries in the first rows in a pair are put in the first column while their corresponding second rows

Grep in Perl

2002-12-18 Thread Kenneth Jideofor \[ MTN - Ikoyi \]
Hi folks, I have two files, FILE1 and FILE2. Each of the two files is an array of numbers. I want to check for the occurrence of each element of FILE1 in FILE2. In other words, FILE2 is checked for the occurrence of each of the elements in of FILE1. For any element of FILE1 that occurs in

Sorting a File

2002-11-14 Thread Kenneth Jideofor \[ MTN - Ikoyi \]
Hi, With reference to the attached file (FILE-A), I want line 1 and line 2 printed to a file (say, FILE-B) should line 3 and line 4 contain 4 and 5 respectively. In other words, if line 3 contains 4 and line 4 contains 5, print the entire line 1 and line 2 for that particular group of four lines

Perl Script for Sorting

2002-07-08 Thread Kenneth Jideofor \[ MTN - Ikoyi \]
Hi all, Good day to you. Given the table below, I want to extract all entries in Column 1 that appeared more than once in the table. These entries should be extracted with their respective other entries in the other columns. The result should be saved to a file. Please, assist me in writing a