Wow, even after going back and looking for it I couldnt find the -p switch, I actually had to grep the grep manual for it! Thanks, that's what I was looking for!
---------- Post updated at 09:37 PM ---------- Previous update was at 12:53 AM ----------
I got some errors using the -P switch, but I found the \w character class works well when double quoted and with the -E switch for extended regex.
---------- Post updated at 09:40 PM ---------- Previous update was at 09:37 PM ----------
How can I grep for a certain letter that only shows on the 3rd letter or character.
ex:
ASGHDY
SHTYRD
SDTYRD
IGIKGD
I only want the TY part of the 3rd character
so output would only be SHTYRD and DDTYRD - I only want the TY on the 3rd character.
THANKS (5 Replies)
Hi,
I've tried to use classes in my program, but the compiler simply gives an error on the word class . Am I the only one with this problem ? I have no idea how to use classes in c in linux environment(suse). If you've got any idea what should I do I would be very thankful.
Thanks to ya all !... (4 Replies)
All,
I am trying to grep "-----" from a test when i use this i am getting the below error. What is the reason for this ?????... How can i over come this
##) echo "----------------- test_sys_job -----------------" | grep "-----------------"
grep: illegal option -- -
grep: illegal... (6 Replies)
I was wondering if I could put the section at the beginning rather than at the end before the definition of the class.
const REAL ModMisfit::DefMinDT = 0.01;
const REAL ModMisfit::DefSigma0 = 0.01;
const double ModMisfit::DefDAngSh = 2;
const REAL ModMisfit::DefKBeta = 5;... (2 Replies)
Hello there, I am new to using classes, and have been having so many problems. I don't want to go to my teacher if I don't have to, because it is always my luck that it is something easy that I just overlooked somehow. I have been working on this for 3 days and I can't get it to read from a file.
... (1 Reply)
Hi, so I have a file containing many repetitions of the pattern block displayed below:
>NM_13489075
ACGUGCUAGCUUAGCGA
AGCUAGCUGAUCGAUGC
ACGUAGCUAGCUGAUCG
GAUCGA
>NM_13489023
ACGUGCUAGCUUAGCGA
AGCUAGCUGAUCGAUGC
ACGUAGCUAGCUGAUCG
GAAGUC
I was wondering how to grep, for example, a... (5 Replies)
Hello,
Im trying check if character "æ" (alt+145) is included or not in some files. To do that I have written a scrip with vi that basically is a loop of all these compressed files and something like:
zcat $file | grep æ >> logtocheck.out ;
The problem is that æ is translated to something like... (3 Replies)
a='CASH$$A'
/usr/xpg4/bin/grep -F "$a" *.txt
It is not able to grep CASH$$A string as it contains special character $$.
I also tried with
/usr/xpg4/bin/grep -F '$a' *.txt
but still not working.
I have to assign CASH$$A to a variable and serach that variable..i dont want to search the... (8 Replies)
ZGREP(1) General Commands Manual ZGREP(1)NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)ZGREP(1)