Search Results

Search: Posts Made By: mjomba
1,260
Posted By mjomba
copy and merge texts between two pattern
I need
1. to find all the files from a Folder "folder_name" and from its 4 or 5 sub folders which contain a certain pattern "pattern1".
2. from these files copy and merge all the text between...
2,954
Posted By mjomba
Dear rdcwayx. Could you explain, please, the...
Dear rdcwayx.
Could you explain, please, the meaning of the number which follow \\ after gensub ?
Thank you very much. Mjomba
2,954
Posted By mjomba
Dear rdcwayx, ...
Dear rdcwayx, (https://www.unix.com/members/302014515.html)
thank you for the code you wrote!

I slightly changed it as follows, and tried it on CygWin, but I got a message of error which I don't...
1,912
Posted By mjomba
Dear yinyuemi, thank you very much for the...
Dear yinyuemi,
thank you very much for the code you wrote for me. It works well!
Could you explain the meaning of it, and me how does it work?

Moreover, could it be possible to add the filename...
2,224
Posted By mjomba
delete part of file from pattern1 to pattern2
Hi all!

How can I delete all the text starting from <string1> to <string2> in all the .txt files of the folder "FOLDER" ?

Thanks a lot!

mjomba



...
</s>
<s>
<w>[3]</w>
</s>
<s>...
1,878
Posted By mjomba
delete more than one line awk or perl
Hi all!

How can a file be rid of three lines in sequence like the sample below:

...
</s>
<s>
<w>[3]</w>
</s>
<s>
...to get:

...
</s>
<s>
...
Note that the digits between square...
2,954
Posted By mjomba
Change value in a column
Hello!
Please could anyone help me in writing a code to modify the value in column
two of a file with more than two tab-separated column (but the lines
may have a different number of columns,...
1,912
Posted By mjomba
MERGE FILES
Hi all!

How could I merge all the text files (in format xml) of a single folder, after having deleted from each of them all the text from its beginning up to a specific string: "<body>" ?
...
4,726
Posted By mjomba
change character(s) in specific column
Hi all!

I need to change the final e every time when it is present in any word in column 1 to a; moreover, to change the final i again to a in any word in column 1, but just if word in column 2...
1,701
Posted By mjomba
Dear Yinyuemi, Thank you for the code you...
Dear Yinyuemi,
Thank you for the code you wrote for me. It works; but could it be possible to get nly once all the entry followed by the sum (total) of frequences (value of columns 2 of the final...
1,701
Posted By mjomba
select last column
Hi!

From a file the format of whichis as in the sample here below, I need to get two files having just 2 columns, being - for the first file - the 2nd than the 1st from the original file; and -...
1,381
Posted By mjomba
Eliminate double void line
Hi,

I need to eliminate each second void line in a text file.

novus
MILLENNIO
ineo


frater
in
episcopatus
,


presbyter
et
diacon|diaconus
,
1,753
Posted By mjomba
Thank you very much, Franklin52! It does...
Thank you very much, Franklin52!
It does exactly what I need.
Just a little modification, if it's possible.
So to get rid of the blank chr which seems to be inserted at the beginning of each line....
1,753
Posted By mjomba
from one word for line to plain text
Hello!
I've got a very big file (from tokenization) which has one word for line.
How is it possible then to rebuild the "original" text, knowing that <s> and </s> are the sentence-delimiters?
...
17,171
Posted By mjomba
Thank you very much! It does what I needed: ...
Thank you very much!
It does what I needed:
cat oldfile | tr -cd '[:alnum:][:punct:][:space:]' > newfilemjomba
17,171
Posted By mjomba
get rid of non-alphanumeric characters
Hi!
Could anyone so kindly help me a code to eliminate from a txt file, obtained by collecting and merge several web-page, every word (string) containing non alphabetical, numeric and punctuation...
18,981
Posted By mjomba
write filename as first line in a txt file
Could anyone very kindly help me a simple way to perform the - perhaps - very trivial task of writing the name of a file as first line of that file which is in txt format?

And would be possible to...
2,171
Posted By mjomba
delete repeated strings (tags) in a line and concatenate corresponding words
Hello friends!

Each line of my input file has this format:
word<TAB>tag1<blankspace>lemma<TAB>tag2<blankspace>lemma ... <TAB>tag3<blankspace>lemma

Of this file I need to eliminate all the...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 12:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy