for example:
searches only for single word
for single word
this is line three
match=$(grep -n -e "single" data.txt)
this command will stored "..... single ...... single" into search.
how can i grep the single word just from line 2 only?? (3 Replies)
ok, so this is proving to be kind of difficult even though it should not be.
say for instance I want to grep out ONLY the word fkafal from the below output, how do I do it?
echo ajfjf fjfjf iafjga fkafal foeref afoafahfia | grep -w "fkafal"
If i run the above command, i get back all the... (4 Replies)
Hi.
I have a tab separated file that has a couple nearly identical lines. When doing:
sort file | uniq > file.new
It passes through the nearly identical lines because, well, they still are unique.
a)
I want to look only at field x for uniqueness and if the content in field x is the... (1 Reply)
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
Is it possible to modify file like this.
1. Remove all the duplicate names in a define column i.e 4th col
2. Count the no.of unique names separated by ";" and print as a 5th col
thanx in advance!!
Q
input
c1 30 3 Eh2
c10 96 3 Frp
c41 396 3 Ua5;Lop;Kol;Kol
c62 2 30 Fmp;Fmp;Fmp
... (5 Replies)
Hi,
Below is an example :
ST1 PREF: int1 AVAIL: int2
ST2 PREF :int1 AVAIL: int2
I need int1 to come in preferred variable while programming and int2 in available variable
Please help me doing so
Best regards,
Vishal (10 Replies)
Trying to use awk to find a keyword and return the matches in the row, but also $1 and $2, which are the unique id's, but they only appear once. Thank you :).
file
name 31 Index Chromosomal Position Gene Inheritance
122 2106725 TSC2 AD
124 2115481 TSC2 AD
121 2105400 TSC2 AD... (6 Replies)
Hello All,
Here is am trying to get maximum value of third field depending on
first,second and fourth fields with awk command . delimeter is pipe(|) .
input
0221|09|14.25|aaa
0221|09|44.27|aaa
0221|09|44.33|aaa
0221|09|44.53|bbb
0221|09|34.32|bbb
0221|09|37.13|bbb... (5 Replies)
Discussion started by: sayami00
5 Replies
LEARN ABOUT DEBIAN
bio::variation::snp
Bio::Variation::SNP(3pm) User Contributed Perl Documentation Bio::Variation::SNP(3pm)NAME
Bio::Variation::SNP - submitted SNP
SYNOPSIS
$SNP = Bio::Variation::SNP->new ();
DESCRIPTION
Inherits from Bio::Variation::SeqDiff and Bio::Variation::Allele, with additional methods that are (db)SNP specific (ie, refSNP/subSNP IDs,
batch IDs, validation methods).
FEEDBACK
Mailing Lists
User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one
of the Bioperl mailing lists. Your participation is much appreciated.
bioperl-l@bioperl.org - General discussion
http://bioperl.org/wiki/Mailing_lists - About the mailing lists
Support
Please direct usage questions or support issues to the mailing list:
bioperl-l@bioperl.org
rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address
it. Please include a thorough description of the problem with code and data examples if at all possible.
Reporting Bugs
Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the
web:
https://redmine.open-bio.org/projects/bioperl/
AUTHOR
Allen Day <allenday@ucla.edu>
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a _
get/set-able methods
Usage : $is = $snp->method()
Function: for getting/setting attributes
Returns : a value. probably a scalar.
Args : if you're trying to set an attribute, pass in the new value.
Methods:
--------
id
type
observed
seq_5
seq_3
ncbi_build
ncbi_chr_hits
ncbi_ctg_hits
ncbi_seq_loc
ucsc_build
ucsc_chr_hits
ucsc_ctg_hits
heterozygous
heterozygous_SE
validated
genotype
handle
batch_id
method
locus_id
symbol
mrna
protein
functional_class
is_subsnp
Title : is_subsnp
Usage : $is = $snp->is_subsnp()
Function: returns 1 if $snp is a subSNP
Returns : 1 or undef
Args : NONE
subsnp
Title : subsnp
Usage : $subsnp = $snp->subsnp()
Function: returns the currently active subSNP of $snp
Returns : Bio::Variation::SNP
Args : NONE
add_subsnp
Title : add_subsnp
Usage : $subsnp = $snp->add_subsnp()
Function: pushes the previous value returned by subsnp() onto a stack,
accessible with each_subsnp().
Sets return value of subsnp() to a new Bio::Variation::SNP
object, and returns that object.
Returns : Bio::Varitiation::SNP
Args : NONE
each_subsnp
Title : each_subsnp
Usage : @subsnps = $snp->each_subsnp()
Function: returns a list of the subSNPs of a refSNP
Returns : list
Args : NONE
perl v5.14.2 2012-03-02 Bio::Variation::SNP(3pm)