Search Results

Search: Posts Made By: infiniteabyss
2,536
Posted By infiniteabyss
egrep from a specific column?
Is it possible to use egrep on a specific column in a file?

ie. my current code:

egrep 'snp|ins' file1 > file2

I'd like to only include the rows if they have snp or ins as terms in a...
1,836
Posted By infiniteabyss
haha yup, I just realized that. It worked...
haha yup, I just realized that.

It worked :)

Thank you so so so so so so very much.
1,836
Posted By infiniteabyss
Still results in an empty file :( egrep...
Still results in an empty file :(

egrep 'acceptor|donor' file1 > file2
1,836
Posted By infiniteabyss
I have tried this and I get an empty file as the...
I have tried this and I get an empty file as the result :(
1,836
Posted By infiniteabyss
Awk For a Specific Term
I'm having trouble pulling specific ROWS out of a very large file. I've been using an awk command in unix that looks like this:

awk '{if ($16=="ACCEPTOR" || $16=="DONOR") print $0}' file1 >...
6,368
Posted By infiniteabyss
Sorry vgersh99 - it does work - thank you so very...
Sorry vgersh99 - it does work - thank you so very much.

The reason I was confused is because all the rows from column two are still in this file, but I can just awk for the rows I need.

Much...
6,368
Posted By infiniteabyss
awk works, is there any difference between nawk...
awk works, is there any difference between nawk and awk?

the output is off, it is showing this:
29 chr1 59497 59498 snp T C dbsnp.100:rs2854666;
chr1 61442 A G 3
...
6,368
Posted By infiniteabyss
Hi vgersh99, I tried yours but it said: ...
Hi vgersh99, I tried yours but it said:

-bash: nawk: command not found

Thanks 2pugs...I keep getting errors though :(
6,368
Posted By infiniteabyss
wow, this is incredibly sophisticated compared to...
wow, this is incredibly sophisticated compared to the basic unix that I know.

the only thing I'm confused about is where to put the file "paths"... each time it says file2 do i write the actual...
6,368
Posted By infiniteabyss
A match can exist in any row... the first file...
A match can exist in any row... the first file should ALL match in some way to an entry in the second file, but the second file has thousands of rows that will not match to the first file.

I'm...
6,368
Posted By infiniteabyss
Merging two files based on two columns to make a third file
Hi there,

I'm trying to merge two files and make a third file.

However, two of the columns need to match exactly in both files AND I want everything from both files in the output if the two...
Showing results 1 to 11 of 11

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