Hi Gurus,
I have to join two flat files based on two key field columns. I concatenated two key fields and i tried the join command. It is working
fine. But, without using temporary files can't i use like this:
join -t ':' `awk -F ":" '{ printf("%s%s:%s\n", $1,$2, $0) }' file1` `awk -F ":" '{... (2 Replies)
How to view the list of the files in the sub directory along with their properties?
I mean
<folder1>
........<folder11>
..............<folder111>
......................MyFile_1111.txt
......................MyFile_1112.txt
..............<folder112>
......................MyFile_1121.txt... (3 Replies)
Hi ,
I want to join 2 files based on 2 column join condition.
a11
john 2230 5000
a12
XXX 2230 A B 200 345
Expected O/P
John 2230 5000 A B 200
I have tried this
awk 'NR==FNR{a=$1;next}a&&sub($1,a)' a11 a12 > a13 (3 Replies)
Hello,
My apologies if this has been posted elsewhere, I have had a look at several threads but I am still confused how to use these functions. I have two files, each with 5 columns:
File A: (tab-delimited)
PDB CHAIN Start End Fragment
1avq A 171 176 awyfan
1avq A 172 177 wyfany
1c7k A 2 7... (3 Replies)
Hi everyone.
I'm looking for a way to extract the video card properties (Name, Driver version, amount of vram). I've managed to deal with nVidia cards, but nothing came for ATI/AMD cards and other kind of chipsets. Can someone point a way to do this?
Thanks. (4 Replies)
Since it was a royal pain for me to figure out how to show nautilus audio/video properties I would share this with other people.
I KNOW this package does the trick.
totem-nautilus
This package MAY do the trick. I was reading this.
gnome-mplayer-nautilus-1.0.3-1.fc15.x86_64.rpm -... (0 Replies)
Hi,
I have 20 tab delimited text files that have a common column (column 1). The files are named GSM1.txt through GSM20.txt. Each file has 3 columns (2 other columns in addition to the first common column).
I want to write a script to join the files by the first common column so that in the... (5 Replies)
Hello,
This post is already here but want to do this with another way
Merge multiples files with multiples duplicates keys by filling "NULL" the void columns for anothers joinning files
file1.csv:
1|abc
1|def
2|ghi
2|jkl
3|mno
3|pqr
file2.csv:
1|123|jojo
1|NULL|bibi... (2 Replies)
Discussion started by: yjacknewton
2 Replies
LEARN ABOUT DEBIAN
data::format::html
Data::Format::HTML(3pm) User Contributed Perl Documentation Data::Format::HTML(3pm)NAME
Data::Format::HTML - Format Perl data structures into simple HTML
SYNOPSIS
use Data::Format::HTML;
my $f = Data::Format::HTML->new;
my %hash = (simple => 'hash');
# Of course it's very unlikely that you won't deal ever with this
# kind of structure, but HTML is able to hand it all anyway :)
my $struct = {
foo => 'bar',
1 => 2,
'hello' => 'goodbye',
array_ref => [qw/one two three/],
nested_hash => \%hash,
[qw/1 2/] => sub { die; },
even_more => { arr => {
1 => [2, 3, 4],
this_is_insane => { a => { b => { c => { d => { e => 'z'}}}}}
},
},
};
$struct->{'Data::Format::HTML handles it all'} = $f;
print $f->format();
And that will output the following insane, but possible, for the sake of showing, HTML:
In theory you can pass any kind of Perl data structure to "format" and you will get its data HTML-formatted.
TODO
o A LOT. ;)
o Explain how CSS can prettify the tables (specification for everything)
o Get CSS.
o Better support for GLOB, CODE, REF and company.
o Extend this documentation.
SEE MORE
The author keeps the versioned code at GitHub at: http://github.com/damog/data-format-html/tree/master <http://github.com/damog/data-
format-html/tree/master>.
AUTHOR
David Moreno Garza, <david@axiombox.com> - <http://damog.net/>
THANKS
To Raquel (<http://www.maggit.com.mx/>), who makes me happy every single day of my life.
COPYRIGHT AND LICENSE
Copyright (C) 2008 by David Moreno Garza
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or,
at your option, any later version of Perl 5 you may have available.
The Do What The Fuck You Want To public license also applies. It's really up to you.
perl v5.12.3 2009-07-17 Data::Format::HTML(3pm)