Search Results

Search: Posts Made By: Bruno
8,843
Posted By Bruno
Thanks for all your help I got it sorted :)
Thanks for all your help I got it sorted :)
8,843
Posted By Bruno
renaming multiple files with first line of content
Hi ,
I want to rename multiple files with their first line bar the first character + the extension .qual. For the example below the filename should read
7180000000987.qual. I have trawled through...
9,513
Posted By Bruno
Hi Methyl, file NY5876_cds.csv looks like this...
Hi Methyl,
file NY5876_cds.csv looks like this it hasn't got the > symbol in front of each line
NY5876_1 chromosomal replication initiation protein
NY5876_2 DNA polymerase III subunit beta ...
9,513
Posted By Bruno
Hi Methyl, here are some sample data Thanks...
Hi Methyl,
here are some sample data
Thanks again for going to so much trouble.
Bruno
list looks like this
NY5876_104
NY5876_5
NY5876_899
NY5876_9999
NY5876_1899
NY5876_10

file...
9,513
Posted By Bruno
But it doesn't seem to work for me with any other...
But it doesn't seem to work for me with any other TAG, I end up with an empty test_file, and if I don't leave a space after the expression it kind of works but it puts the whole file_1 into test ...
9,513
Posted By Bruno
Thanks Methyl, as you know it works on my...
Thanks Methyl,
as you know it works on my example files. What do I have to do if my tags are different e.g.
NY5876_1 ... NY5876_9999
If tried myself but failed.

Thank you very much for your...
9,513
Posted By Bruno
Dear reborg, that doesn't work it just produces...
Dear reborg,
that doesn't work it just produces an empty file "test".

Thanks for trying

Bruno
9,513
Posted By Bruno
problem with grep in combination with xargs
Hi Corona688,
thanks for the reply. Unfortunately that doesn' work either. The result is the same as the one I get when I use Zaxxon suggestion.
file_2
TAG_1
TAG_2
TAG_4
TAG_6
...

file_1...
9,513
Posted By Bruno
problem with grep in combination with xargs
Hi Zaxxon,
thanks for the quick reply. Unfortunately that doesn' work. I think the problem is that the info I am looking for looks like this

file_2
TAG_1
TAG_2
TAG_4
TAG_6
...

file_1...
9,513
Posted By Bruno
problem with grep in combination with xargs
Dear all,
I have tried the following 2 lines

xargs -t -i -exec grep -i -w {} file_1 >>test < file_2

cat -s file_2| xargs -t -i -exec grep -i -w {} file_1 >> test

They were meant to...
Showing results 1 to 10 of 10

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