bug#24858: URGENT: Question about grep

2016-11-02 Thread Eric Blake
On 11/02/2016 12:24 PM, Paul Jackson wrote: > Greta asked: >>> So what I have to add in grep command to put the limit of 30 characters? > > Eric replied: >>> You can't do it with grep. > > Bruce suggested: >>> cut -c 30 filename | grep ACGTAC > > Using the following grep command seems to work f

bug#24858: URGENT: Question about grep

2016-11-02 Thread Paul Jackson
Greta asked: >> So what I have to add in grep command to put the limit of 30 characters? Eric replied: >> You can't do it with grep. Bruce suggested: >> cut -c 30 filename | grep ACGTAC Using the following grep command seems to work for me, and is about 40% faster, in terms of user CPU time spe

bug#24858: URGENT: Question about grep

2016-11-02 Thread Eric Blake
On 11/02/2016 10:52 AM, Bruce Dubbs wrote: >> >> I want that the research is done only in the underline characters. So >> what I have to add in grep command to put the limit of 30 characters? > > cut -c 30 filename | grep ACGTAC That works if you are only interested in seeing the first 30 chara

bug#24858: URGENT: Question about grep

2016-11-02 Thread Bruce Dubbs
Greta wrote: Dear grep developer, I am Greta Romano and I need your help as soon as possibile. I want to use grep command to search a string of 6 characters in every line of a file (biological file with DNA nucleotide). The problem is that I need to search these 6 characters in the first 30 ch

bug#24858: URGENT: Question about grep

2016-11-02 Thread Eric Blake
tag 24858 notabug thanks On 11/02/2016 09:53 AM, Greta wrote: > String to search: GTGTCA > > File: > >>HWI-ST740:1:C2GCJACXX:1:1101:1279:1825 1:N:0: > _/NGACGCTCTGACCTTCTGGTC/__A_TGCTGAGGAGACGGTGACCAGGGTTCCCTGGACANNNCCAAGCTTCCNNN > >>HWI-ST740:1:C2GCJACXX:1:1101:134

bug#24858: URGENT: Question about grep

2016-11-02 Thread Greta
Dear grep developer, I am Greta Romano and I need your help as soon as possibile. I want to use grep command to search a string of 6 characters in every line of a file (biological file with DNA nucleotide). The problem is that I need to search these 6 characters in the first 30 characters of