02-13-2016
This sounds like a homework assignment. Homework and coursework questions can only be posted in
the Homework & Coursework Questions forum and must include a completely filled out homework template that is included in the
special homework rules.
Please review the
rules, which you agreed to when you registered, if you have not already done so.
If this is not a homework assignment, please explain the reason for doing this project and include more information, including, but not necessarily limited to:
- the operating system you're using,
- the shell you're using,
- sample input data (in CODE tags), and
- sample desired output data (in CODE tags).
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello. I would be very pleased if sb. help me to solve my problem. I've got a file with many non blank lines and I want to merge all lines into one not destroy the informations on them. I've tryed it with split and paste, tr, sed , but everything I've done has been wrong. I know about crazy... (8 Replies)
Discussion started by: Foxgard
8 Replies
2. Shell Programming and Scripting
Hi there,
I have a couple of files I need to merge. I can do a simple merge by concatenating them into one larger file.
But then I need to filter the file to get a desired result.
The output looks like this:
TRNH 0000000010941
ORDH
OADR
OADR
ORDL
ENDT 1116399 000000003... (2 Replies)
Discussion started by: Meert
2 Replies
3. Shell Programming and Scripting
I have about 20 CSV's that all look like this:
"","","","","","","","","","","","","","","",""What I've been told I need to produce is the exact same thing, but with each file now containing the start_code from every other file where the email matches.
It doesn't matter if any of the other... (1 Reply)
Discussion started by: Demosthenes
1 Replies
4. Shell Programming and Scripting
Hi everyone,
I have two files (A and B) and want to combine them to one by always taking 10 rows from file A and subsequently 6 lines from file B. This process shall be repeated 40 times (file A = 400 lines; file B = 240 lines).
Does anybody have an idea how to do that using perl, awk or sed?... (6 Replies)
Discussion started by: ink_LE
6 Replies
5. Shell Programming and Scripting
Thanks it worked for me. I have one more question on top of that. We had few records which were splitted in 2 lines instead of one. Now i identified those lines. The file is too big to open via vi and edit it. How can i do it without opening the file.
Suppose, I want line number 1001 & 1002 to... (2 Replies)
Discussion started by: Gangadhar Reddy
2 Replies
6. Shell Programming and Scripting
I have been working of this script for a very long time and I have searched the internet for direction but I am stuck here.
I have about 3000 files with two columns each. The length of each file is 50000. Each of these files is named this way b.4, b.5, b.6, b.7, b.8, b.9, b.10, b.11, b.12... (10 Replies)
Discussion started by: iconig
10 Replies
7. Shell Programming and Scripting
Hello all,
I have a large csv file where there are four types of rows I need to merge into one row per person, where there is a column for each possible code / type of row, even if that code/row isn't there for that person.
In the csv, a person may be listed from one to four times... (9 Replies)
Discussion started by: RalphNY
9 Replies
8. Shell Programming and Scripting
Hello All ,
I am trying to merge two files each contain 16 lakh lines ..My requirement is i have merge after every 14 lines of each file .
Like from file1 14 lines then after after 14 lines form file2 ..so i wrote below script .
It is working for small files ,but large files script not... (10 Replies)
Discussion started by: Phani369
10 Replies
9. UNIX for Beginners Questions & Answers
Hi,
I want to duplicate lines of a csv file with header if a column has multiple values. The csv uses semicolon as separator while multiple values are separated with comma. Only the type3 column can have multiple values.
input:
type1;type2;type3
a1;b1;x,y
a2;b2;z
output:
a1;b1;x... (2 Replies)
Discussion started by: iz_82
2 Replies
10. Shell Programming and Scripting
I have a folder with 100s of dat files, with delimiter "|", in some files they didn't provide this delimiter. how to automatically check those list of files in a folder which doesnt have a delimiter or string this way "|" is it possible?
Thank you very much for the helpful info. (3 Replies)
Discussion started by: cplusplus1
3 Replies
LEARN ABOUT DEBIAN
gedcom::family
Gedcom::Family(3pm) User Contributed Perl Documentation Gedcom::Family(3pm)
NAME
Gedcom::Family - a module to manipulate Gedcom families
Version 1.16 - 24th April 2009
SYNOPSIS
use Gedcom::Family;
my @rel = $f->husband;
my @rel = $f->wife;
my @rel = $f->parents;
my $nch = $f->number_of_children;
my @rel = $f->children;
my @rel = $f->boys;
my @rel = $f->girls;
$f->add_husband($i);
$f->add_wife($i);
$f->add_child($i);
DESCRIPTION
A selection of subroutines to handle families in a gedcom file.
Derived from Gedcom::Record.
HASH MEMBERS
None.
METHODS
None yet.
Individual functions
my @rel = $f->husband;
my @rel = $f->wife;
my @rel = $f->parents;
my @rel = $f->children;
my @rel = $f->boys;
my @rel = $f->girls;
Return a list of individuals from family $f.
Each function, even those with a singular name such as husband(), returns a list of individuals holding that releation in $f.
number_of_children
my $nch = $f->number_of_children;
Return the number of children in the family, as specified or from counting.
Add functions
$f->add_husband($i);
$f->add_wife($i);
$f->add_child($i);
Add the specified individual to the family in the appropriate position.
These functions also take care of the references from the individual back to the family, and are to be preferred to the low level addition
functions which do not do this.
perl v5.14.2 2012-04-12 Gedcom::Family(3pm)