|XP is just a number|
Aligning text and then perfom calculationsby epimenidecretese (Acolyte)
|on Dec 15, 2013 at 21:15 UTC||Need Help??|
epimenidecretese has asked for the
wisdom of the Perl Monks concerning the following question:
Ciao guys, I'm trying to solve a problem with some text I have. I have processed two text files and now I have something like this:
What I am trying to do is to align the words (so I understand I should do some string compairison but then I don't know how) by keeping file1 as reference: this means that if a word is present in file1 but not in file2 then the whole raw should be deleted. Once this is done I would like to compute the differences of the percentages (f1-f2).
At the end I would like something like this:
I was trying to do this in awk but after a lot of tryings I gave up. If somebody could help I'd be very happy.
One of Crete's own prophets has said it: 'Cretans are always liars, evil brutes, lazy gluttons'.