09-21-2018
You're reading the file in sequential order. The order of your if statements is unimportant for the requirement you specified.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Query 1 :
I want to know how we can get a count of multipe occurrences of a particular expression in another string.
For Eg. If my string is " 12" and i need to count the number of spaces preceeding 12
Query 2 :
Also want to know how we can change the alignment of a... (9 Replies)
Discussion started by: Rohini Vijay
9 Replies
2. UNIX for Dummies Questions & Answers
Hi
I have a tab delimited file with 3 fields. I need to sort this file on the first field and remove all the records where the first field has dulplicates. For eg my file is
133|arrfdfdg|sdfdsg
234|asfsdgfs|aasdfs
133|affbfsde|dgfg
When this file gets sorted I need the result to be ... (2 Replies)
Discussion started by: monks
2 Replies
3. Shell Programming and Scripting
New to scripting in general, so patience plz. If I ask a stupid question or don't get it, I thank you for your kindness in advance.
That said, did a for i loops checks to see if a PB* file is there but I need to know two things before I copy the file.
I need to know if the file's create date... (2 Replies)
Discussion started by: xgringo
2 Replies
4. Shell Programming and Scripting
Hi,
Actually i stored all validdisks in one array and corresponding partitions required for all individual disks in other array..
Example:
Validdisks=dsk2 dsk3 dsk5
ValidPartition=4 4 3
Now i have to create domain..
Domain creation can be done by below commands:
fs_setup -d... (1 Reply)
Discussion started by: mansa
1 Replies
5. Shell Programming and Scripting
HI Unix Gurus,
I have a number of SELECT count(*) statements in an input file and I want to execute it using a shell script but one by one using loop in script....
How can I do this..... (7 Replies)
Discussion started by: ustechie
7 Replies
6. Shell Programming and Scripting
Hi All,
can you tell me how to drop all preceding zeros in a number. For example, if i have a numbers like 000876838347 and 0000007854762543..how to make them as 876838347 and 7854762543. (6 Replies)
Discussion started by: nram_krishna@ya
6 Replies
7. Shell Programming and Scripting
Can you give me some suggestions to split below string into three parts using shell scripts.. Script has to print all alphabets before the number, then number and then all alphabets after the number..
input: chris martin 200173 845747 mech engineer
output: chris martin 200173 845747 mech... (6 Replies)
Discussion started by: nram_krishna@ya
6 Replies
8. UNIX for Dummies Questions & Answers
Hi there,
How can I loop through files with order.
I tried using ls .html | sort -v
However the filename is with spaces:1233.61.47.0 - 121.61.123.112 nexpose.html
Here is the original code that is working well, but I need to sort through the filename.echo "<center>"
for file in *.html... (2 Replies)
Discussion started by: alvinoo
2 Replies
9. Shell Programming and Scripting
Bash shell, variables i and rem are working fine in 2 separate for loops, but I'd like to consolidate them like this:
for && This gives syntax error on &&.
Thanks in advance for direction. (5 Replies)
Discussion started by: p1ne
5 Replies
10. Shell Programming and Scripting
Hello, how in bash i can get directory loop and order by creation date?
THX! :)
#!/bin/bash
for folder in /home/test/*
do
if ; then
echo $folder;
fi (12 Replies)
Discussion started by: ZerO13
12 Replies
LEARN ABOUT HPUX
fcache_seqlimit_system
fcache_seqlimit_system(5) File Formats Manual fcache_seqlimit_system(5)
NAME
fcache_seqlimit_system - percentage of file cache that can be consumed by sequential accesses, per system-wide limit
VALUES
Failsafe
Default
Allowed values
The minimum value allowed is The maximum value allowed is
Specify a positive integer value.
DESCRIPTION
This parameter places a system-wide limit on how much memory can be consumed in the file cache by sequential accesses. It is important to
note the relationship between this tunable and the per-file limit tunable, These two tunables, in conjunction, control how much memory in
the file cache can be consumed by sequential accesses.
When sequential accesses to a file has exceeded the per-file limit AND the system-wide limit, the excess file cache pages are paged out.
Note that both limits have to be reached in order for page stealing to occur. For example, a file can exceed its limit if the limit has
not been reached. Similarly, no page stealing occurs if none of the files on the system has exceeded the per-file limit, even if the sys-
tem-wide limit has been hit.
The page stealing feature is specific to improving sequential I/O performance for large files. Limiting file cache memory consumption
helps alleviate memory pressure in the file cache. It also prevents cache wiping -- a single thread sequentially accessing a large file
can wipe out the existing contents of the file cache.
Who is Expected to Change This Tunable?
System administrators that run applications which do large sequential file I/O's. Typically, these files are larger than the size of phys-
ical memory on the system.
Restrictions on Changing
Changes to this tunable take effect immediately.
When Should the Value of This Tunable Be Raised?
When you wish to allow greater file cache consumption due to sequential accesses. Setting and to 100 effectively disables the sequential
access page stealing feature.
What Are the Side Effects of Raising the Value?
Setting the tunable too high may yield poor performance for large sequential I/O's for large files (larger than physical memory size). and
should be tuned appropriately for the anticipated workload.
When Should the Value of This Tunable Be Lowered?
When you wish to limit file cache consumption due to sequential accesses. Setting and to 0 forces sequential access page stealing to
always occur.
What Are the Side Effects of Lowering the Value?
Could cause more pageouts to occur in an attempt to limit the file cache consumption.
What Other Tunable Values Should Be Changed at the Same Time?
and should be changed at the same time.
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
fcache_seqlimit_file(5).
Tunable Kernel Parameters fcache_seqlimit_system(5)