02-14-2020
Quote:
Originally Posted by
jiam912
...
Please a small request more.
It is possible to set the minimum too. As example minimum = 0.
I think your small request more can easily be satisfied along the lines shown by rdrtx1 and me...
This User Gave Thanks to RudiC For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
With the following small script I list the size of documents belonging to a certain user by each time selecting the bytes-field of that file ($7). Now it fills the array with every file it finds so in the end the output of some users contains up to 200.000 numbers. So how can I calculate... (7 Replies)
Discussion started by: Hille
7 Replies
2. Shell Programming and Scripting
awk '
FILENAME == "all" { balance += substr($0,17,13)
dt = substr($0,6,8) }
END { for ( name in balance )
printf("%013s %3s of %8s\n", balance/100,name,dt) | "sort "
} ' all > summation
using this code i wanted to take summary totals of... (3 Replies)
Discussion started by: paresh n doshi
3 Replies
3. Shell Programming and Scripting
Hello,
I have written a script in a previous server and its being migrated to a new server. I'm trying to debug my script since i've had to make minor changes to it to get it to work.
I'm having a hard time getting my totals to populate
here is the syntax
DUMP_COUNT=`sqlplus -S... (4 Replies)
Discussion started by: senormarquez
4 Replies
4. Shell Programming and Scripting
Afternoon,
I have a script which creates/modifies data into a formatted csv.
The trailer record should display 2 columns, the first is a static entry of "T" to identify it as a trailer record. The 2nd is a total of amounts in a column throughout the entire file.
My total isn't displaying... (8 Replies)
Discussion started by: mcclunyboy
8 Replies
5. Shell Programming and Scripting
Hi, I am working with files containing 2 columns in which i need to come up with the frequency/count of values in col. 2 falling within specifics binned values of col. 1. the contents of a sample file is shown below:
15 12.5
15 11.2
16 0.2
16 1.4
17 1.6
18 4.5
17 5.6
12 8.6
11 7.2
9 ... (13 Replies)
Discussion started by: ida1215
13 Replies
6. Solaris
Guys
We have a HP P4015 laserjet printer with a 5 bin mailbox attached & configured. We can print to the specific output bins from Oracle e-Business suite, however our print output format is incompatible so it prints out random characters instead of the letter content.
I have looked... (2 Replies)
Discussion started by: s1977
2 Replies
7. UNIX for Dummies Questions & Answers
Hi all, I'm looking for an awk solution for taking bins of data set.
For example, if I have two columns of data that I wish to use for a scatter plot, and it contains 5 million lines, how can I take averages of every 100 points, 1000, 10000 etc...
The idea is to take bins of the 5,000,000 points... (7 Replies)
Discussion started by: torchij
7 Replies
8. Shell Programming and Scripting
I have a one-liner script like this that gives a total of everything in various directories:
for i in *;
do (cd $i && cd statelist && echo $i && ls -la |awk 'NR>3 {SUM += $5}\
END { print "Total number of elements " SUM }');done
It works just great but at the end I want to print a grand... (3 Replies)
Discussion started by: newbie2010
3 Replies
9. Shell Programming and Scripting
I wish to use AWK to do something akin: Select all 2D data with 1<$1<2 and -7.5<$2<-6.5
But it's not working
awk 'END {print ($1<=2&&$1>=1&&$2<=-6.5&&$2>=-7.5)}' bla
Data:
-1.06897 -8.04482 -61.469
-1.13613 -8.04482 -61.2271
-1.00182 -8.04482 -61.2081
-1.06897 -8.13518 -60.8544... (2 Replies)
Discussion started by: chrisjorg
2 Replies
LEARN ABOUT MOJAVE
scsi_reset_notify
scsi_reset_notify(9F) Kernel Functions for Drivers scsi_reset_notify(9F)
NAME
scsi_reset_notify - notify target driver of bus resets
SYNOPSIS
#include <sys/scsi/scsi.h>
void scsi_reset_notify(struct scsi_address *ap, int flag, void (*callback)(caddr_t), caddr_t arg);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
ap Pointer to the scsi_address structure.
flag A flag indicating registration or cancellation of the notification request.
callback A pointer to the target driver's reset notification function.
arg The callback function argument.
DESCRIPTION
scsi_reset_notify() is used by a target driver when it needs to be notified of a bus reset. The bus reset could be issued by the transport
layer (e.g. the host bus adapter (HBA) driver or controller) or by another initiator.
The argument flag is used to register or cancel the notification. The supported values for flag are as follows:
SCSI_RESET_NOTIFY Register callback as the reset notification function for the target driver.
SCSI_RESET_CANCEL Cancel the reset notification request.
Target drivers can find out whether the HBA driver and controller support reset notification by checking the reset-notification capabil-
ity using the scsi_ifgetcap(9F) function.
RETURN VALUES
If flag is SCSI_RESET_NOTIFY, scsi_reset_notify() returns:
"small and bold">DDI_SUCTheSnotification request has been accepted.
DDI_FAILURE The transport layer does not support reset notification or could not accept this request.
If flag is SCSI_RESET_CANCEL, scsi_reset_notify() returns:
"small and bold">DDI_SUCTheSnotification request has been canceled.
DDI_FAILURE No notification request was registered.
CONTEXT
scsi_reset_notify() can be called from user or interrupt context.
SEE ALSO
scsi_address(9S), scsi_ifgetcap(9F)
Writing Device Drivers
SunOS 5.10 8 Sep 1994 scsi_reset_notify(9F)