Hi All,
Very GM
I am searching for a specific filesystem on a serevr,
like df -k "/"
i am geting an output also...
but when i am checking for somthing like /oramnt (which is not mounted currently)
so i am geting an out like this
df -k "/oramnt"
output of root...!
so i tried... (7 Replies)
Hi All,
I have a quary regarding grep command in linux.
I have a file which contains
56677
56677
+56677
+56677
56677
56677
56677
I want to extract total count of "56677"
When I hit the following command
#cat filename | grep -w -c '56677'
the result comes 7. Its counting... (3 Replies)
I'm trying to find a exact word match but couldn't do it.
ABC
ABC_NE
Searching for ABC_NE tried
grep -w </ABC_NE/>
grep "^ABC_NE$"
but didn't worked , any awk variants would also help.
---------- Post updated at 08:40 AM ---------- Previous update was at 06:48 AM ----------
I... (2 Replies)
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Hi All,
I have a text / log file which contains strings like meta777, 77, meta, 777. Now I want to write a script which can detect a string 'meta#777' in a text file & number of occurence of 'meta', number of #, number 7, 77, 777.
I'm using grep -e '77' filename but no luck. It is returning... (5 Replies)
This may be stupid question but not able to solve it.
How to grep exact word and line along with it.
TEST:/u00/app/oracle/product/10.2.0/TEST:N
TEST2:/u00/app/oracle/product/10.2.0/ODS:N
TEST3:/u00/app/oracle/product/10.2.0/TEST:N
TEST4:/u00/app/oracle/product/10.2.0/ODS:N... (4 Replies)
Hi
i am writing and i want to take very first word "A924A5FC"from the below o/p
A924A5FC 0910055313 P S SYSPROC SOFTWARE PROGRAM ABNORMALLY TERMINATED
A924A5FC 0908091913 P S SYSPROC SOFTWARE PROGRAM ABNORMALLY TERMINATED
A924A5FC 0906090313 P S SYSPROC SOFTWARE... (4 Replies)
Hi
I am trying to grep multiple exact word from log file and directing it to a new file.
however my log file has many numeric values, such as 0400, 0401, 0404
and all html error also starts with 404, 401 etc
so I just want to grep only when 404, 401 etc is coming, NOT 0400, OR 0401
i have... (8 Replies)
Discussion started by: scazed
8 Replies
LEARN ABOUT DEBIAN
numtheory
math::numtheory(3tcl) Tcl Math Library math::numtheory(3tcl)__________________________________________________________________________________________________________________________________________________NAME
math::numtheory - Number Theory
SYNOPSIS
package require Tcl ?8.5?
package require math::numtheory ?1.0?
math::numtheory::isprime N ?option value ...?
_________________________________________________________________DESCRIPTION
This package is for collecting various number-theoretic operations, though at the moment it only provides that of testing whether an inte-
ger is a prime.
math::numtheory::isprime N ?option value ...?
The isprime command tests whether the integer N is a prime, returning a boolean true value for prime N and a boolean false value for
non-prime N. The formal definition of 'prime' used is the conventional, that the number being tested is greater than 1 and only has
trivial divisors.
To be precise, the return value is one of 0 (if N is definitely not a prime), 1 (if N is definitely a prime), and on (if N is proba-
bly prime); the latter two are both boolean true values. The case that an integer may be classified as "probably prime" arises
because the Miller-Rabin algorithm used in the test implementation is basically probabilistic, and may if we are unlucky fail to
detect that a number is in fact composite. Options may be used to select the risk of such "false positives" in the test. 1 is
returned for "small" N (which currently means N < 118670087467), where it is known that no false positives are possible.
The only option currently defined is:
-randommr repetitions
which controls how many times the Miller-Rabin test should be repeated with randomly chosen bases. Each repetition reduces
the probability of a false positive by a factor at least 4. The default for repetitions is 4.
Unknown options are silently ignored.
KEYWORDS
number theory, prime
CATEGORY
Mathematics
COPYRIGHT
Copyright (c) 2010 Lars Hellstrom <Lars dot Hellstrom at residenset dot net>
math 1.0 math::numtheory(3tcl)