Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: roussine
1,644
Posted By roussine
awk statement piped inside sed
Hello folks,
I have multiple occurrences of the pattern:

)[0-9].[0-9][0-9][0-9]:

where [0-9] is any digit, in various text context but the pattern is unique as this regex. And I need to...
3,150
Posted By roussine
Thanks indeed - you helped a lot. Cheers
Thanks indeed - you helped a lot. Cheers
3,150
Posted By roussine
Thanks for help: works fine! Except in cases...
Thanks for help: works fine!
Except in cases where a string is a substring of another one in file2 (eg, BACILLUS_Bacilli_ is a sub of LACTOBACILLUS_Bacilli_), in which cases there are leftovers...
3,150
Posted By roussine
Thanks a lot, but this awk solution deletes from...
Thanks a lot, but this awk solution deletes from file1 only some part of the strings specified in file2.. why would it not recognize the rest?..
I'm attaching a small example of files 1 and 2, and...
3,150
Posted By roussine
Delete strings in file1 based on the list of strings in file2
Hello guys,

should be a very easy questn for you:

I need to delete strings in file1 based on the list of strings in file2.

like file2:
word1_word2_
word3_word5_
word3_word4_...
2,099
Posted By roussine
rdcwayx, thank you very much, I'll test this on...
rdcwayx, thank you very much, I'll test this on large data.
2,099
Posted By roussine
Print number of occurrences of many different strings
People, I need your help with making a script which will

1. take as an input the number of lines, smth like this:

((RUBROBACTER_1_PE1288
(((SALINISPORA_1_PE1863
SALINISPORA_1_PE1828)100...
7,023
Posted By roussine
rdcwayx & konsolebox, thank you very much indeed....
rdcwayx & konsolebox, thank you very much indeed. konsolebox: may I ask what is the safety from considering the underscore? U think otherwise awk may over-replace in some cases?
7,023
Posted By roussine
sed is a powerful thing, i have this page in...
sed is a powerful thing, i have this page in bookmarks :), thanks
But still my lines to replace are many more..
7,023
Posted By roussine
I guess this is an ad hoc suggestion, which will...
I guess this is an ad hoc suggestion, which will not do ( as the replacement table is hundreds and the input file - thousands of lines.
7,023
Posted By roussine
Example input and output would be like the...
Example input and output would be like the attached. The table would be used to identify and replace the strings..
7,023
Posted By roussine
string replacement using a lookup table
Dear all thanks for helping in advance.. Know this should be fairly simple but I failed in searching for an answer.

I have a file (replacement table) containing two columns, e.g.:
ACICJ...
63,491
Posted By roussine
Cheers everyone! I have a particularly similar...
Cheers everyone!
I have a particularly similar need to count occurrences of words. The detail is that the words are many and are contained in ahother file.

Perl experts, can u pls tell if it's...
3,315
Posted By roussine
thank you! - works perfect
thank you! - works perfect
3,315
Posted By roussine
Dear Franklin, thanks for helping. While the...
Dear Franklin, thanks for helping.
While the prevous version of your command eat up the string up to the last occurrence of the colon, this one does not seem to affect the file at all.
Files may...
3,315
Posted By roussine
thanks- really unix is elegant -----Post...
thanks- really unix is elegant

-----Post Update-----



Hey, here i'm again:
it seems in strings where there are more than one ':' after the name (in this case, AQAEO) this command eats up...
3,315
Posted By roussine
the original string would be ...
the original string would be

....1.08305,((THDEA1_1_PE708:0.47029,...

and, provided that I know the name THDEA,

the line would become 1.08305,((THDEA:0.47029,

The name is known every...
3,315
Posted By roussine
excise a part of string
Dear all, will appreciate your help with this (supposedly simple) thing.
How to use sed to replace a part of string like this:

(TAGthenwhatever:

into (TAG:

meaning that '(TAG' (known,...
2,966
Posted By roussine
Hey everyone, lots of thank for your helps with...
Hey everyone, lots of thank for your helps with the bacterial business! Works charmingly.
1,386
Posted By roussine
extracting lines from a file, which contain lines in another file
Hello all. I would need to "grep" a file for the occurrence of all lines listed in another file. The result would be a list of lines extracted from file 1, which contain instances (lines) present in...
2,966
Posted By roussine
Replacing text based on replacement tables
Dear all, will be grateful for your advices..
The need is (i guess) simple for UNIX experts. Basically, there are replacement tables, which would be used to replace text strings in the data (large...
2,060
Posted By roussine
Gorgeous :) i love unix. Many thanks!
Gorgeous :) i love unix. Many thanks!
2,060
Posted By roussine
How to recognize a string and move it within a line?
Guys, can you pls help?.
My need is to find a string in a line, cut it and append to the end of the line where it was found. I guess the sed command can handle this, but how?..

e.g. in the line...
9,440
Posted By roussine
good Unix emulator for vista PC
Dear experts!

can you please advise if there are good solutions to emulate Unix on a vista PC? I'm on windows by default, as many on my crucial applications are exclusively win-based, so...
4,204
Posted By roussine
not that little, somewhat emotionally unbalanced...
not that little, somewhat emotionally unbalanced )) but with mostly assembled genome )

oh, this ssh client thing..
Showing results 1 to 25 of 38

 

Featured Tech Videos

All times are GMT -4. The time now is 01:00 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy