Hi all,
i have 50 files .data should be same in these 50 files , so my task is to find the difference. i need a logic , which finds difference between all files and print in output file with file name where it found that difference .
i tried below logic , but its not giving me what i want.
let... (2 Replies)
Hey guys. I know pratically 0 about Linux, so could anyone please give me instructions on how to accomplish this ?
The distro is RedHat 4.1.2 and i need to find and replace a multiple lines string in several php files across subdirectories.
So lets say im at root/dir1/dir2/ , when i execute... (12 Replies)
Hi,
I need to compare multiple columns from 2 files.
I can, for example, have these 2 files:
file1:
col1, col2, col3,col4
a,1,4,7
b,2,5,8
c,3,6,9file2:
col1, col2, col3,col4
a,2,3,2
b,5,7,5
c,1,9,8As a result, I need for example the difference between the columns 2 and 4:
col2,... (3 Replies)
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
Hi,
I have multiple files that each contain one column of strings:
File1:
123abc
456def
789ghi
File2:
123abc
456def
891jkl
File3:
234mno
123abc
456def
In total I have 25 of these type of file. (5 Replies)
Hi,
There is a file A.txt which contains a list of strings.
A.txt
QASSBRK1
QASSBRK2
And in B.txt, command is written to generate output of dspmq with AWK script
B.txt
QMGR=`dspmq | awk '{print $1}' | cut -f2 -d "(" | cut -f1 -d ")"`
Output of B.txt is
QASSBRK1
QASSBRK2
QASSBRK3... (4 Replies)
Hi,
I have below query related to multiple file comparing
I have four files i want to compare it and contents of one file will not be presence in 3other files and if any content found then it will print the execution.
Can you please help me how to achieve it. (2 Replies)
file1.txt
col1 col2 col3
b100:07-24-2018:test1
b102:04-24-2017:test2
b103:04-24-2017:test3
b104:04-24-2017:test3
file2.txt
col4 col5
b100:name1@email.com
b102:name2@email.com
b103:name3@email.com
Comparing string from file1.txt(col1) each record with... (3 Replies)
Discussion started by: ramgk5
3 Replies
LEARN ABOUT DEBIAN
html::microformats::datatype::string
HTML::Microformats::Datatype::String(3pm) User Contributed Perl Documentation HTML::Microformats::Datatype::String(3pm)NAME
HTML::Microformats::Datatype::String - text in a particular language
SYNOPSIS
my $string = HTML::Microformats::Datatype::String
->new('Bonjour', 'fr');
print "$string
";
DESCRIPTION
Constructor
"$str = HTML::Microformats::Datatype::String->new($text, [$lang])"
Creates a new HTML::Microformats::Datatype::String object.
Public Methods
"$str->lang"
Return the language code.
"$str->to_string"
Return a plain (scalar) string.
Functions
"$str = ms($text, [$element])"
Construct a new HTML::Microformats::Datatype::String object from a scalar, plus XML::LibXML::Element. If $element is undef, then
returns the plain (scalar) string itself.
This function is exported by default.
(Note: the name 'ms' originally stood for 'Magic String'.)
"isms($str)"
Returns true iff $str is blessed as a HTML::Microformats::Datatype::String object.
This function is exported by default.
"$c = concat($a, $b, [$reverse])"
Concatenates two strings.
If the language of string $b is null or the same as $a, then the resultant string has the same language as $a. Otherwise the result has
no language.
If $reverse is true, then the strings are concatenated with $b preceding $a.
This function is not exported by default.
Can also be used as a method:
$c = $a->concat($b);
"compare($a, $b)"
Compares two strings alphabetically. Language is ignored.
Return values are as per 'cmp' (see perlfunc).
This function is not exported by default.
Can also be used as a method:
$a->compare($b);
BUGS
Please report any bugs to <http://rt.cpan.org/>.
SEE ALSO
HTML::Microformats, HTML::Microformats::Datatype.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT
Copyright 2008-2011 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
perl v5.14.2 2011-12-06 HTML::Microformats::Datatype::String(3pm)