What i currently do is create an array and then grep for it in a loop
1. Not sure how this works for you.
2. The grep statement searches for patterns from what?
3. There is a "fi" without an "if". Are we missing few lines of code here?
I have two files.And a sort of matrix analysis.
Both files have a string followed by two numbers:
File 1:
A 2 7
B 3 11
C 5 10
......
File 2:
X 1 10
Y 3 5
Z 5 9
What I'd like to do is for each set of numbers in the second file indicate if the first or second number (or both) in... (7 Replies)
Dear all,
I have numerous dat files (1.dat, 2.dat...) containing 500 numeric values each. I would like to count them, based on their range and obtain a histogram or a counter.
INPUT:
1.dat
1.3
2.16
0.34
......
2.dat
1.54
0.94
3.13
.....
... (3 Replies)
hi Experts
just wondering if you can help me check a number between a specific range
if i have an ip address , how can i say the valid number for ip between 1 to 254
something like this
if ($ip ) =~ /.../
{
}
what the pattern i need to type
thanks (3 Replies)
The following is part of a larger project and sed is (right now) a given. I am working on a recursive Korn shell function to "peel off" XML tags from a larger text. Just for context i will show the complete function (not working right now) here:
function pGetXML
{
typeset chTag="$1"
typeset... (5 Replies)
Hi there,
Not being too up on bash shell programming at this point, could anyone throw me a bone about how to zip up a set of numerically-named files by range?
For example, in a folder that contains files 1.pdf through 132000.pdf, I'd like to zip up just those files that are 50000.pdf and... (6 Replies)
Dear All,
My regex is like below. Its says all the number in coloum is include.
11666
11777
11888
^(?\: (0|11)(666|777|888))\\d+$
How to exclude all the numeric that not mentioned in above regex.
Regards, (3 Replies)
MEMCONTROL(8) BSD System Manager's Manual MEMCONTROL(8)NAME
memcontrol -- control system cache behaviour with respect to memory
SYNOPSIS
memcontrol list [-a]
memcontrol set -b base -l length -o owner attribute
memcontrol clear -o owner
memcontrol clear -b base -l length
DESCRIPTION
A number of supported system architectures allow the behaviour of the CPU cache to be programmed to behave differently depending on the
region being written.
The memcontrol utility provides an interface to this facility, allowing CPU cache behavior to be altered for ranges of system physical mem-
ory.
These ranges are typically power-of-2 aligned and sized, however the specific rules governing their layout vary between architectures. The
memcontrol utility does not attempt to enforce these rules, however the system will reject any attempt to set an illegal combination.
list List range slots.
-a List all range slots, even those that are inactive.
set Set memory range attributes.
-b base
Memory range base address.
-l length
Length of memory range in bytes, power of 2.
-o owner
Text identifier for this setting (7 char max).
attribute
Attributes applied to this range; combinations of force, uncacheable, write-combine, write-through, write-back, and
write-protect.
clear Clear memory range attributes. Ranges may be cleared by owner or by base/length combination.
To clear based on ownership:
-o owner
All ranges with this owner will be cleared.
To clear based on the base/length combination:
-b base
Memory range base address.
-l length
Length of memory range in bytes, power of 2.
Base and length must exactly match an existing range.
SEE ALSO mem(4)BSD September 15, 2002 BSD