Search Results

Search: Posts Made By: jyu429
1,151
Posted By jyu429
Substitute first column based on second column
Hi,

I have files with lines that look like

HSQ1008:141:D0CC8ACXX:3:1106:17255:124378 163 chr14

I'm wondering how I can output a file that appends /1 if the second column is 99 or...
1,443
Posted By jyu429
awk for string between > and /n
Hi, I have a file that looks something like the following:

>IGHV4-4*02
caggtgcagctgcaggagtcgggcccaggactggtgaagccttcggggaccctgtcc
ctcacctgcgctgtctctggtggctccatcagcagtagtaactggtggagt...
1,131
Posted By jyu429
Thank you! I have a follow-up question,...
Thank you!

I have a follow-up question, however. How should I modify the above if I have files with spaces and dashes instead? For instance,

008 - Great Good Fine Ok - Not Going Home
009 -...
1,131
Posted By jyu429
Renaming files to remove everything before one parenthesis
Hi,

I have files in a folder that I would like all renamed without the preceding number and parenthesis. For example, I have files of the name

08) Great Good Fine Ok - Not Going Home
09)...
5,861
Posted By jyu429
Yes, sorry I did mean $1, $2. I think I'm trying...
Yes, sorry I did mean $1, $2. I think I'm trying to do something like


awk '{ print $1, $2}'|
while read A B;
do
echo $A, $B
if [ "$B" -eq "16" ];
then
grep -A 1 $A $1 | python...
5,861
Posted By jyu429
Sorry, another follow-up. In awk '{...
Sorry, another follow-up.

In


awk '{ print $1}' |
while read num
do
foo "$num"
done

supposing I did
awk '{ print $1 $2}' |
instead of awk '{ print $1}' |

where I only want...
986
Posted By jyu429
Yes, it indeed does. I am running on OS X...
Yes, it indeed does. I am running on OS X Yosemite.
986
Posted By jyu429
Extracting the two lines where the first line is matched
Hi,

If I have a file of something like


@hg19_gold_AL122127.6-131160
GCTTCATCATGCATGGATAGGCTGGCGCCTTTCCTGAGGCCATATGCCGATGGATATG
@hg19_gold_AL122127.6-131159...
5,861
Posted By jyu429
Thank you!
Thank you!
5,861
Posted By jyu429
I suppose I'm asking if I have a bash function...
I suppose I'm asking if I have a bash function called foo(), how do I call foo() on every element after the first step of filtering all strings between > and *. Thanks!
5,861
Posted By jyu429
Extract string between two special characters
Hi,

I have a file that looks something like

>1-18*anc...
1,806
Posted By jyu429
Grep on a list
Hi,

If I have a list called list.txt and on each line theres a string of the form something*blah, how do I remove everything after the * for each item? Thanks!
Showing results 1 to 12 of 12

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