Hi,
I'm used to applying Perl scripts to only one file. What do I need to add to them in order to handle a complete folder in which multiple txt files are stored?
Thanks for your help!
J
Hello,
I'm trying to retrieve the contexts of each keyword in an array. The problem is that I only get the right output for the last keyword in the array. Example:
FILE1:
tree
apple
FILE2:
This is a tree.
The aPple is green.
It looks like a tree.
should become:
**
<KEYWORD>tree...
Hi,
How do I quickly change this format:
tag
tag1
word
word1
sentence
sentence0.2
into this one:
tag tag 1
word word 1
sentence sentence 0.2
Fields are separated by tabs and after each number a newline is printed.
Thanks in advance.
J
Hi all,
Could s.o. help me in finding a script for the following task: given the two input-files 'list.txt' and 'text.txt', I need to have a script that looks for all the words (listed in the list.txt file) in the text.txt file and places them between §.
So, if list.txt is for instance:
cat...
Hello,
While working on the previous script, I encountered a new problem. Given a file ("termlist.txt") and an inputfile ("textfile.txt" --> one sentence = one line), I need to write a script that states:
If a pattern in sentence X of "textfile.txt" matches a term...
Hi,
Four files (one for Dutch, one for French, one for Italian and one for English) need to be merged into one single file.
Dutch file:
<Seg L=NL-BE>Artikel 1
<Seg L=NL-BE>Artikel 2
English file:
<Seg L=EN-GB>ART. 1
<Seg L=EN-GB>ART. 2
Italian file:
<Seg L=IT-IT>Articolo 1
<Seg...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.