10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13.
I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies
2. AIX
We found out that the Spectrum Scale (GPFS) doesnt support mix nodes (AIX and RHEL) on direct attached storage.
Is there any other options besides NFS for mix O/S? Trying to avoid network type of shared filesystem which might end up high traffic on IO because we do run backup jobs on those... (0 Replies)
Discussion started by: kiasu
0 Replies
3. Programming
I think both write at the end of the file ......
but is there a sharp difference between those 2 instruction .....
thank you
this is my 3rd question today forgive me :D (1 Reply)
Discussion started by: fwrlfo
1 Replies
4. Emergency UNIX and Linux Support
I haven't been able to do anything since yesterday evening because my account is full to the brim. Very annoying on a Friday evening when no admin will be in until Monday morning. Of course, I might consider cleaning up if I knew where the problem is, but I can't figure it out because du and df... (8 Replies)
Discussion started by: mregine
8 Replies
5. Shell Programming and Scripting
I want to add column btw to column
Input
ABCDE2012 120 21.6
ABCDE2012 126 0.9
PLKJHN2012 128 20.2
UNHYT2012 1210 -0.3
Output//
Column 1 Column 2 Cl 3 Cl4
ABCDE2012 ABCDE2012120 120 21.6
ABCDE2012 ABCDE2012126 126 0.9
PLKJHN2012 PLKJHN2012128 128 20.2... (3 Replies)
Discussion started by: pareshkp
3 Replies
6. Solaris
Hi guys,
Hope u r doing find. I have this query. When we check the manual pages for a certain command, say man cat
we see the manual page with more
What is UNIX really doing here, I mean why not less command instead of more command. And can we have UNIX display the manual pages with less command... (2 Replies)
Discussion started by: gabam
2 Replies
7. Shell Programming and Scripting
Hello friends,
I have a C source code containing sql statements. I use the following sed command to print all the sql blocks in the source code....
sed -n "/exec sql/,/;/p" Sample.cpp
The above sed command will print the sql blocks based on the pattern "exec sql" & ";"... (2 Replies)
Discussion started by: frozensmilz
2 Replies
8. UNIX for Dummies Questions & Answers
filename contains:
123 4
1234 5
12345 689
i want result:
1234
12345
12345679
cat filename | awk '{print $1, $2, $3}' will get my result, but too many $$s.
sed -e 's///g' filename will take care one space, will take 2 spaces.
is it a short way to do this ? (7 Replies)
Discussion started by: tjmannonline
7 Replies
9. Shell Programming and Scripting
Hi all,
what does this mean?
if
then
<something>
fi
here is what i know..
it checks if the specified argument no($devid) in some function call is made into a block device and then proceeds with the execution of the loop.
However am not understand what lofi@0:means?
also is there... (5 Replies)
Discussion started by: wrapster
5 Replies
10. UNIX for Advanced & Expert Users
hi
Can any one explain me difference between @# and @* with the help of examples?
Thanks (3 Replies)
Discussion started by: rochitsharma
3 Replies
MINTEGRATE(1) User Commands MINTEGRATE(1)
NAME
mintegrate - evaluate average/sum/integral/derivative of 1-d numerical data
SYNOPSIS
mintegrate [OPTION]... [FILE]
DESCRIPTION
mintegrate is a program to compute averages, sums, integrals or derivatives of numerical 1-d data in situations where ultimate numerical
precision is not needed.
OPTIONS
-a compute mean value (arithmetic average) and standard deviation
-c compute integral on closed x-data interval; In case that dx is not specified by the '-d' flag, the data are supposed to be from an
irregular x-grid, and dx is computed separately for every x-interval. The integral is computed by the trapezoidal rule.
-d <float>
compute integral on open x-data interval with the specified dx; Can be used also in combination with '-D' and '-c'.
-D compute difference btw. numbers or derivative of the y-data; In the default scenario where x- and y-data column are same, the dif-
ference btw. the current and the previous data value will be output. In this case when '-d' is defined as 0, the x-data value will
be print out in front of the calculated difference. If x-and the y-column are different and if the x-data resolution is not defined
or it is !=0, then the derivative of the y-data is calculated. When the x-data resolution is constant, specify it explicitly by '-d'
to achieve a higher numerical precision by a 'leapfrog' algorithm.
-x <int>
x-data column (default is 1). If 0, the x-range is an index;
-y <int>
y-data column, where y=f(x) (default is 1)
-r x_0:x_1
x-data range to consider
-s print out accumulated y_i sums: x_i versus accumulated f(x_i); In the case of a closed integral you have to specify also the x-data
resolution dx (see '-d' above).
-S compute the accumulated y_i-sums and add it to the output
-p <str>
print format of the result ("%.10g" is default)
-t <str>
output text in front of the result (invalid with '-s' or '-S'); A blank can be printed by using a double underscore character '__'.
-T run a self-test that the program is working correctly
-V print version number
--version
output version and license message
--help|-H
display help
-h display short help (options summary)
If none of the options '-a', '-D', '-d', or '-c' is used, then the sum of the provided data will be computed. Empty lines or lines starting
with '#' are skipped.
This program is perfectly suitable as a basic tool for initial data analysis and will meet the expected accuracy of a numerical solution
for the most demanding computer users and professionals. Yet be aware that, although the computations are carried with double floating pre-
cision, the computational techniques used for evaluating an integral or a standard deviation are analytically low-order approximations, and
thus not intended to be used for numerical computations in engineering or mathematical sciences for cases where an ultimate numerical pre-
cision is a must. For deeper understanding of the topic see http://en.wikipedia.org/wiki/Numerical_analysis.
COPYRIGHT
Copyright (C) 1997, 2001, 2006-2007, 2009, 2011-2012 Dimitar Ivanov
License: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
mintegrate 2.2.1 February 2012 MINTEGRATE(1)