02-23-2005
hi Zb and bhargav
Thanks a lot for your time. It was really useful.
Sabina
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there!
I'm trying to validate a simple 6 digits number with reg expr. I ONLY want 6 digits so when i type 7 digits the script should no validate the number.
I've write this code:
#!/usr/bin/perl
while(<STDIN>){
if($_=~/\d{6}/){
print "Bingo!\n";
... (2 Replies)
Discussion started by: BufferExploder
2 Replies
2. Shell Programming and Scripting
Hi Everyone,
a.txt
1272904667;1272904737;1
1272904747;1272904819;1
1272904810;1272904857;1
1272904889;1272904926;1
1272905399;1272905406;1
1272905411;1272905422;1
if i want to get the record, when the a.txt 1st field is between 1272904749 and 1272905399, any simple way by using awk,... (1 Reply)
Discussion started by: jimmy_y
1 Replies
3. Shell Programming and Scripting
Hi All.
I have a file that has an ID Number field....some of the ID Numbers are actual SSNs. ...does anyone know the range that SSNs may be...this is what I have found so far poking around SSN info sites....
greater than 001-01-0000 and less than 770-00-0000. Does anyone know this to be... (1 Reply)
Discussion started by: lyoncc
1 Replies
4. Shell Programming and Scripting
out of a range of numbers, how can i pick out the number that is the closest to any arbitrary/random number that a user supplies?
say the range of numbers are between 1 - 90000. but that doesn't mean each number exist between 1 - 90000. the range of numbers could be for example:
1, 3, 4, 6,... (6 Replies)
Discussion started by: SkySmart
6 Replies
5. Shell Programming and Scripting
Is there a way to create a loop that will output number starting from 0.1 to 10.0
0.1
0.2
0.3
0.4
0.5
..
...
10.0
This is what i tried.
for i in {1..50}; do printf -v i '%02d' $i ; echo "$i"; done
That will print
01
02
03
..
..
50 (9 Replies)
Discussion started by: vietrice
9 Replies
6. Shell Programming and Scripting
Is it possible to test against a varible within a ranges in a if statement.
ex.
if ];then
echo "not in range"
else
echo "number within range"
fi (8 Replies)
Discussion started by: leemalloy
8 Replies
7. Shell Programming and Scripting
Hi
I want to get all numbers if number range is given as input.
Eg:
INPUT FILE
100-105
107
108-112
OUTPUT REQUIRED:
100 101 102 103 104 105
107
108 109 110 111 112
How can I do it using shell? :confused:
Thanks in advance. (11 Replies)
Discussion started by: dashing201
11 Replies
8. Shell Programming and Scripting
Hi there I am trying to generate a random number between 40 and 70 using the shell here is my code so far and it keeps going above 70. all help much appreciated!
comp=$(( RANDOM%70+40 ))
echo $comp (4 Replies)
Discussion started by: faintingquiche
4 Replies
9. UNIX for Dummies Questions & Answers
Trying to use SED to replace numbers that fall into a range but can't seem to get the logic to work and am wondering if SED will do this. I have a file with the following numbers
3
26
20
5. For the numbers that are greater than zero and less than 25, SED would add the word range after the... (7 Replies)
Discussion started by: jimmyf
7 Replies
10. Shell Programming and Scripting
I have 100k data like this bellow , i want to group data to range
171
172
173
174
175
176
179
182
183
187
188
189
1900
1901
1903
1904
1905
1906 (10 Replies)
Discussion started by: before4
10 Replies
LEARN ABOUT HPUX
diskaudit_flush_interval
diskaudit_flush_interval(5) File Formats Manual diskaudit_flush_interval(5)
NAME
diskaudit_flush_interval - determine time interval (in secs) for flushing audit records
VALUES
Failsafe
Default
Allowed values
Recommended values
DESCRIPTION
The tunable controls the periodic interval between two consecutive flushes of audit records buffered in the kernel memory which is bound to
a kernel thread. This kernel thread has 64KB of buffer size to hold the audit records, and there can be a maximum of 32 such threads.
These kernel threads automatically flush their buffers if the buffers fill up completely, but that might take a long time depending upon
the activities in the system.
The value of the tunable should be set such that the threads keep cleaning their buffers when they are approximately half full, or are idle
for a long time but still holding some data in the buffer. Keeping the tunable value too low will make threads flush too soon and may lead
to too many small write operations, thus impacting performance. On the other hand, keeping the value too high might lead to high unflushed
memory consumption.
Who Is Expected to Change This Tunable?
An administrator with proper privileges can change the value of
Restrictions on Changing
None. This tunable is dynamic.
When Should the Value of This Tunable Be Raised?
When the system is not processing many audit-related activities.
What are the Side Effects of Raising the Value?
If the system is generating large numbers of records, and the value is raised, then it can result in a lot of unflushed memory, and might
slow down the system.
When Should the Value of This Tunable Be Lowered?
When the system is generating a lot of audit records.
What are the Side Effects of Lowering the Value?
If the system is not generating too many records, and the value is lowered, it might lead to a lot of small numbers of writes, which actu-
ally only write to buffer cache and not immediately to the physical disk, with the actual write happening later on. This might impact per-
formance again.
What Other Tunable Values Should Be Changed at the Same Time?
None.
WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of
HP-UX.
Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation,
some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun-
able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was
factory installed on your system, see at
AUTHOR
was developed by HP.
SEE ALSO
audit(5).
Tunable Kernel Parameters diskaudit_flush_interval(5)