07-14-2009
Hello,
Per
our forum rules, all threads must have a descriptive subject text. For example, do not post questions with subjects like "Help Me!", "Urgent!!" or "Doubt". Post subjects like "Execution Problems with Cron" or "Help with Backup Shell Script".
The reason for this is that nearly 95% of all visitors to this site come here because they are referred by a search engine. In order for future searches on your post (with answers) to work well, the subject field must be something useful and related to the problem!
In addition, current forum users who are kind enough to answer questions should be able to understand the essence of your query at first glance.
So, as a benefit and courtesy to current and future knowledge seekers, please be careful with your subject text. You might receive a forum infraction if you don't pay attention to this.
Thank you.
The UNIX and Linux Forums
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file containing many records separated by a % that I would like to sort uniquely (and if possible with a count of dupes) while maintaining the integrity of each record.
File looks like this:
%
srcip: 5.6.7.8
srcburb: internal
dstip: 1.2.3.4
dstport: 2000
dstburb: external... (12 Replies)
Discussion started by: earnstaf
12 Replies
2. Solaris
Can any one give me command How to delete duplicate records with out sort.
Suppose if the records like below:
345,bcd,789
123,abc,456
234,abc,456
712,bcd,789
out tput should be
345,bcd,789
123,abc,456
Key for the records is 2nd and 3rd fields.fields are seperated by colon(,). (2 Replies)
Discussion started by: svenkatareddy
2 Replies
3. Shell Programming and Scripting
Can any one give me command How to delete duplicate records with out sort.
Suppose if the records like below:
345,bcd,789
123,abc,456
234,abc,456
712,bcd,789
out tput should be
345,bcd,789
123,abc,456
Key for the records is 2nd and 3rd fields.fields are seperated by colon(,). (19 Replies)
Discussion started by: svenkatareddy
19 Replies
4. Shell Programming and Scripting
Hi,
I am new to scripting. I need a script to sort and the records in a file and then split them into different files.
For example, the file is:
H1......................
H2......................
D2....................
D2....................
H1........................... (15 Replies)
Discussion started by: Sunitha_edi82
15 Replies
5. Shell Programming and Scripting
Hello,
I have got one file with more than 120+ million records(35 GB in size). I have to extract some relevant data from file based on some parameter and generate other output file.
What will be the besat and fastest way to extract the ne file.
sample file format :--... (2 Replies)
Discussion started by: learner16s
2 Replies
6. Shell Programming and Scripting
I was trying to use the AIX 6.1 sort command to sort fixed-length data records, sorting by specific columns only. It took some time to figure out how to get it to work, so I wanted to share the solution. The sort man page wasn't much help, because it talks about field delimeters (default space... (1 Reply)
Discussion started by: CheeseHead1
1 Replies
7. UNIX for Dummies Questions & Answers
Hi everyone.
I am a newbie to Linux stuff. I have this kind of problem which couldn't solve alone. I have a text file with records separated by empty lines like this:
ID: 20
Name: X
Age: 19
ID: 21
Name: Z
ID: 22
Email: xxx@yahoo.com
Name: Y
Age: 19
I want to grep records that... (4 Replies)
Discussion started by: Atrisa
4 Replies
8. UNIX for Dummies Questions & Answers
Hi all,
I So, I've got a monster text document comprising a list of various company names and associated info just in a long list one after another. I need to sort them alphabetically by name...
The text document looks like this:
Company Name:
the_first_company's_name_here
Address:... (2 Replies)
Discussion started by: quee1763
2 Replies
9. Shell Programming and Scripting
Dear All,
I have two files both containing 10 Million records each separated by comma(csv fmt).
One file is input.txt other is status.txt.
Input.txt-> contains fields with one unique id field (primary key we can say)
Status.txt -> contains two fields only:1. unique id and 2. status
... (8 Replies)
Discussion started by: vguleria
8 Replies
10. Shell Programming and Scripting
I have a file which has number of pipe delimited records.
I am able to read the records....but I want to sort it after reading.
i=0
while IFS="|" read -r usrId dataOwn expire email group secProf startDt endDt smhRole RoleCat DataProf SysRole MesgRole SearchProf
do
print $usrId $dataOwn... (4 Replies)
Discussion started by: harish468
4 Replies
LEARN ABOUT DEBIAN
tm::psi
TM::PSI(3pm) User Contributed Perl Documentation TM::PSI(3pm)
NAME
TM::PSI - Topic Maps, PSI (published subject identifiers)
DESCRIPTION
This package provides predefined subjects, all of which will be preloaded in every map which is instantiated with the TM package hierarchy.
When the subjects are defined also their relationship are kept here (example: isa is an instance of an assertion).
Every such subject is defined by its
item identifier
The internal identifier, which does not really mean much.
subject identifier
The subject indicator(s), which is ultimately the one which identifies any of the subjects here.
NOTE: For none of the subjects declared here a subject address exists. All concepts are TM-related concepts.
The subjects are sorted:
TMRM-related
These are the minimal subjects which make a map what it is. Examples are "isa" and its related role (type) "class" and "instance", and
"is-subclass-of" and its related roles.
TMDM-related (XTM things)
These are the additional concepts which are mandated by TMDM.
AsTMa-related
Here are more concepts which are needed by the AsTMa= language(s), such as "template" or "ontology".
TMQL-related
Here are more concepts which are needed by TMQL.
To learn about these predefined concepts, you can do one of the following
use TM::PSI;
warn Dumper ($TM::PSI::core, $TM::PSI::topicmaps_inc, $TM::PSI::astma_inc, $TM::PSI::tmql_inc);
Taxonometry
Two association types are predefined by the standard(s): "is-subclass-of" and "isa". Together with these roles are defined "subclass",
"superclass" and "instance", "class", respectively.
The TM::* suite of packages has these not only built in, but also works under the assumption that these association types and also the
roles CANNOT be subclassed themselves. This means that no map is allowed to use, say, "is-specialization-of" as a subclass of
"is-subclass-of". The costs of this constraint is quite small compared to the performance benefits.
Infrastructure Concepts
To make the whole machinery work, every topic map must contain infrastructure topics such as "name", "occurrence" etc. They are topics like
the topics a user may put into the map. While this is the right thing to do, in practical situation you often will want to filter out these
infrastructure topics. You can always get a list of these via
@@@ fix docu @@@@@
$tm->mids (keys %{$TM::PSI::topicmaps->{mid2iid}});
SEE ALSO
TM
AUTHOR INFORMATION
Copyright 200[1-68], Robert Barta <drrho@cpan.org>, All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
http://www.perl.com/perl/misc/Artistic.html
perl v5.10.1 2010-07-18 TM::PSI(3pm)