I have this script (thanks Don!) that runs as expected in cygwin:
However, when I run it on cmd:
It just goes idle. The first part prints fine:
I have tried a bunch of different things to make it work with no luck. Any help will be greatly appreciated!
PS. I am attaching the infile (Process1.txt)
I've noticed most of my postings here are because of syntax errors.
So I want to begin compiling a large txt file that contains all the "man <cmd>" of the commands I most have problems with. I ran a "man nawk >> nawk.txt" but it included a header/footer on each "page". Anyone know how I'd be... (6 Replies)
I have to compare records in two files. It can be done using gawk/awk but i am unable to do it. Please help me
File1
ABAAAAAB BC asa sa
ABAAABAA BC bsa sm
ABBBBAAA BC bxz sa
ABAAABAB BC csa sa
ABAAAAAA BC dsa sm
ABBBBAAB BC dxz sa
File 2
ABAAAAAB BC aas ba
ABAAAAAB BC asa sa... (6 Replies)
I'm not sure if this is the right place to post this, but here it is. We have a nightly process that runs on an HP-UX box to stop our application and backend database servers, unmount their SAN hosted file systems, and then snapshot the SAN LUNs for backup and refresh of data on "report" and... (1 Reply)
Hi,
I am using the script to print the portion of the file containing a particular string. But it is giving error "For Reading (No such file or directory). I am using cygwin as unix simulator.
cat TT35*.log | gawk -v search="12345678" '
/mSOriginating /,/disconnectingParty/ {
... (1 Reply)
Hi
Hope you are having a great weeknd !! I had a question and need your expertise for this :
I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
Hi,
I am using SunOS
I want to serch my previous command
from unix prompt
(like on AIX we can search by ESC -k)
how to get in SunOs
urgent help require. (10 Replies)
I'm using cygwin on win7, What I would like to do is something like this:
cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e
I know I can start a new instance using either of these:
mintty -e ...
cygstart tail ...
But neither of those open in ANSI mode, so I can't do... (0 Replies)
Hello,
There's a third-party application's command that shows the application's status like "tail -f verybusy.log". When use the command, the output comes every 1-sec. but when it goes in a script below the output comes every 8-sec...What is the problem and how can I fix it?
open(CMD,... (2 Replies)
I am trying to use gawk to search a file and put the second value of the string into a string.
gawk -F: '$1~/CXFR/ {print $2}' go.dat
Below is the file 'go.dat'
====================
HOME :/
CTMP :/tmp
CUTL :/u/rdiiulio/bin
CWRK :/u/work
CXFR :/u/xfer
... (1 Reply)
Discussion started by: trolley
1 Replies
LEARN ABOUT SUNOS
mlib_imagestddev_fp
mlib_ImageStdDev_Fp(3MLIB) mediaLib Library Functions mlib_ImageStdDev_Fp(3MLIB)NAME
mlib_ImageStdDev_Fp - image standard deviation
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include <mlib.h>
mlib_status mlib_ImageStdDev_Fp(mlib_d64 *sdev, const mlib_image *img, const mlib_d64 *mean);
DESCRIPTION
The mlib_ImageStdDev_Fp() function computes the standard deviation for each channel in the floating-point source image.
It uses the following equation:
1 w-1 h-1
sdev[i] = { ----- * SUM SUM (img[x][y][i] - mean[i])**2 }**0.5
w*h x=0 y=0
where, in the case of mean == NULL,
1 w-1 h-1
mean[i] = ----- * SUM SUM img[x][y][i]
w*h x=0 y=0
PARAMETERS
The function takes the following arguments:
sdev Pointer to standard deviation array, whose size is the number of channels in the source image. sdev[i] contains the stan-
dard deviation of channel i.
img Pointer to input image.
mean Pointer to pre-computed mean array for each channel. (If NULL, it will be computed.) mean[i] contains the mean of channel
i.
RETURN VALUES
The function returns MLIB_SUCCESS if successful. Otherwise it returns MLIB_FAILURE.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO mlib_ImageMean(3MLIB), mlib_ImageMean_Fp(3MLIB), mlib_ImageStdDev(3MLIB), attributes(5)SunOS 5.10 10 Nov 2004 mlib_ImageStdDev_Fp(3MLIB)