That would work fine ,if file1 content and file2 contents are different... but it is not working if contents are same only ^msgstr.*$ line is different.. for example..it wont work if my contents are something like this:
file1:
file2:
after execution , file1 content should be:
Hi,
I have one situation. I have some 6-7 no. of files in one directory & I have to extract all the lines which exist in all these files. means I need to extract all common lines from all these files & put them in a separate file.
Please help. I know it could be done with the help of... (11 Replies)
Hi all
im having trouble starting with a shell script, i hope someone here can help me
i have 2 files
file1:
404905.jpg 516167
404906.jpg 516168
404917.psd 516183
404947.pdf 516250
file2:
516250 /tmp/RecyclePoster18241.pdf
516167 /tmp/ReunionCardFINAL.jpg
516168... (7 Replies)
My sql file xyz_abc.sql in this file there are multiple sql block in this block I need to find the following block
rem Subset Rows (&&tempName.*)
CREATE VIEW &&tempName.* AS
SELECT *
FROM &&tempName.*
WHERE f is not null
and replace with following code
rem Subset Rows... (9 Replies)
hello everyone
my file contains many records, the following is a sample:
BEGIN
ASX1500000050002010120000000308450201012000177
ASX1100002000000201012000000038450201012000220
ASX1600100005000201012000000038450020101200177
ASX1900100006000201067000000058450020101200177... (2 Replies)
Hello everyone
A few years Ago the user radoulov posted a fancy solution for a problem, which was about finding common lines (gene variation names) between multiple samples (files). The code was:
awk 'END {
for (R in rec) {
n = split(rec, t, "/")
if (n > 1)
dup = dup ?... (5 Replies)
Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
... (4 Replies)
Hi! I would like to comm -12 with one file and with all of the files in another folder that has a 100 files or more (that file is not in that folder) to find common text lines. I would like to have each case that they have common lines to be written to a different output file and the names of the... (6 Replies)
Could it be possible to find common lines between all of the files in one folder? Just like comm -12 . So all of the files two at a time. I would like all of the outcomes to be written to a different files, and the file names could be simply numbers - 1 , 2 , 3 etc. All of the file names contain... (19 Replies)
Hello,
I have some code that works more or less. This is called by a make file to adjust some hard-coded definitions in the src code. The script generated some values by looking at some of the src files and then writes those values to specific locations in other files. The awk code is used to... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
LEARN ABOUT DEBIAN
log::report::lexicon::potcompact
Log::Report::Lexicon::POTcompact(3pm) User Contributed Perl Documentation Log::Report::Lexicon::POTcompact(3pm)NAME
Log::Report::Lexicon::POTcompact - use translations from a POT file
INHERITANCE
Log::Report::Lexicon::POTcompact
is a Exporter
SYNOPSIS
# using a PO table efficiently
my $pot = Log::Report::Lexicon::POTcompact
->read('po/nl.po', charset => 'utf-8')
or die;
my $header = $pot->msgid('');
print $pot->msgstr('msgid', 3);
DESCRIPTION
This module is translating, based on PO files. PO files are used to store translations in humanly readable format for most of existing
translation frameworks, like GNU gettext and Perl's Maketext.
Internally, this module tries to be as efficient as possible: high speed and low memory foot-print. You will not be able to sub-class this
class cleanly.
If you like to change the content of PO files, then use Log::Report::Lexicon::POT.
METHODS
Constructors
Log::Report::Lexicon::POTcompact->read(FILENAME, OPTIONS)
Read the POT table information from FILENAME, as compact as possible. Comments, plural-form, and such are lost on purpose: they are
not needed for translations.
-Option --Default
charset <required>
charset => STRING
The character-set which is used for the file. You must specify this explicitly, while it cannot be trustfully detected
automatically.
Attributes
$obj->filename
Returns the name of the source file for this data.
$obj->index
Returns a HASH of all defined PO objects, organized by msgid. Please try to avoid using this: use msgid() for lookup.
$obj->nrPlurals
Managing PO's
$obj->header(FIELD)
The translation of a blank MSGID is used to store a MIME header, which contains meta-data. The FIELD content is returned.
$obj->msgid(STRING)
Lookup the translations with the STRING. Returns a SCALAR, when only one translation is known, and an ARRAY wherein there are
multiple. Returns "undef" when the translation is not defined.
$obj->msgstr(MSGID, [COUNT])
Returns the translated string for MSGID. When not specified, COUNT is 1 (the single form).
SEE ALSO
This module is part of Log-Report distribution version 0.94, built on August 23, 2011. Website: http://perl.overmeer.net/log-report/
LICENSE
Copyrights 2007-2011 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See
http://www.perl.com/perl/misc/Artistic.html
perl v5.14.2 2011-08-23 Log::Report::Lexicon::POTcompact(3pm)