The first command enter the returned line into argument line parameter $* (so $1, $2, $3 ...)
see :
The second command create a file of count block of 1k .
The count calculation is the total number of block divided by 100 multiplied by the threshold
this give the number of block required to fill up the FS to the wanted threshold, but we have to substract to this number of block, the number of block that are already allocated ($3).
So that count finally match the remaining number of 1K block needed to create the file that will fill the FS at the wanted threshold.
hello,
I have a file that has lines with different lengts. I want this file to be filled up with a zero so that al the lines have the same length.
Please advice?
File 1:
-----------
2310
2009
830
1345
Result
File 2:
----------
2310
2009
0830 (3 Replies)
Hi ....
we are having the below file .Column 1, Column 2 ,column 3 are key fields...
In the below ...for 2 nd , 3 rd row the repeated key column is missing ....
i want the new file to be populated with all missing key columns.
... (11 Replies)
It can't be that hard, but I just can't figure it out:
I have file like:
File Sub-brick M_1 S_1 M_2 S_2 M_4 S_4 ...
xxx 1 214 731 228 621 132 578 ...
and would like to get 0 0 where M_3 S_3 is missing
xxx 1 214 731 228 621 0 0 132 578 ...
I wrote following script, but can't figure out... (3 Replies)
Hello All,
Got a question to make a script what reads a directory and put the file names from that directory in a file with some extra text.
ls /tempdir
output is:
file1.gfh
file2.txt
file4.zzz
these file names (always with an extention) must be placed in a line and written to... (2 Replies)
Hi,
I've got a file with several columns where some entries are missing.
Example:
a b c d
f g h
j k l
p y r
I need to replace the empty spaces with zero, so the new file would be:
a b c d
f 0 g h
j k 0 l
p y 0 r
The original file is tab delimited.
Many thansk for... (3 Replies)
Hi everyone, I am using shell scripting on a Unix SCO box. It calls a C program named zerofill. I do not know anything about C. I am having an issue with a hash total that should only be zero filled 10 positions but the record has 11 positions.
DEBUG RESULTS
+ nice -n -5 bc -l /tmp/fhash8395... (0 Replies)
How do I zero fill a string. E.g pad a string to two digits
m=`date "+%m"`
pm=`expr $m - 1`
echo $pm
the above code echoes 1. I want it to echo 01. Any ideas? (3 Replies)
hi all! i have a script with an output like this
abc 123 1246
abc 1386
abc 2589
abc 7383
what can i do if i want to fill the 2nd column with the 2nd string '123'
abc 123 1246
abc 123 1386
abc 123 2589
abc 123 7383
thanks! (3 Replies)
Hi All,
I have 100 .txt files which look like this:
3
4
5
6
7
Now, some files have some numbers missing in them and they look like this:
4
5
6 (6 Replies)
Hi,
I have a data sample as shown below. I want to fill in the left column so that the line will be continuous. For example, between 1 and 5 should be 2,3,4. And corresponding values in the right column will be 0. Thus the expected data should look like that:
1 1
1 10
1 2
1 3
1 5
1 6
2 0... (6 Replies)
Discussion started by: theanh0508
6 Replies
LEARN ABOUT HPUX
acctsuspend
acctsuspend(5) File Formats Manual acctsuspend(5)NAME
acctsuspend, acctresume - suspend and resume accounting when available disk space reaches threshold
VALUES
Failsafe
Default.
Default
acctsuspend:
acctresume:
Allowed values
acctresume:
acctsuspend:
Recommended values
acctsuspend:
acctresume: (But more than acctsuspend)
DESCRIPTION
The and tunables control when accounting stops and resumes due to disk space constraints. When free disk space on the file system being
used by accounting reaches the suspension threshold, which is the percentage relative to the percentage of disk space available only to the
superuser, accounting is suspended until such time as the free disk space reaches the resumption threshold, which is the percentage rela-
tive to the percentage of disk space available only to the superuser.
Note: Since the and values are specified relative to the percentage of disk space available only to the superuser, negative values
of these parameters can make sense. For example, if the superuser has reserved 10 percent of the disk space on the file system at
file system creation time, and acctsuspend is -5 and acctresume is 0, the suspension threshold will be 5 percent of the total disk
space and the resumption threshold will be 10 percent of the total disk space.
Who Is Expected to Change This Tunable?
Anyone using accounting.
Restrictions on Changing
Changes to this tunable take effect at the next reboot.
When Should the Value of This Tunable Be Raised?
Increasing either variable should be considered when it is necessary to maintain a higher percentage of free space on the accounting
filesystem.
What Are the Side Effects of Raising the Value of This Tunable?
The higher either value is, the less accounting data may be captured. The further the values are separated, the greater the amount of
potentially lost accounting data.
When Should the Value of This Tunable Be Lowered?
If additional disk space is needed for accounting data, and it cannot be obtained by moving files off of the filesystem, then the value of
should be lowered.
What Are the Side Effects of Lowering the Value of This Tunable?
Filesystem performance (writing accounting records) decreases as the filesystem fills up. In turn, this will decrease the overall perfor-
mance of accounting processes.
What Other Tunables Should Be Changed at the Same Time?
When changing either of these tunables, both should be considered.
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
and were developed by HP.
SEE ALSO accton(1M).
Tunable Kernel Parameters acctsuspend(5)