Hello All,
Q1) I have the below code but when the email was sent out all lines are merged and coming out as a single line though my printf statement has newline "\n", How do i avoid that?
Q2) In my second IF statement when i introduced the backslash "\" for continuation of a line or command, i see the output coming out with tabspaces probably because of identation, how do i avoid those spaces?
Output For Question1:
Output For Question2:
please help thank you.
Hi all,
Have the following code(1) producing the results(2 & 3).
Would like to know if there is a way to format the two reports created in a similar fashion.
IE - The first is formatted nicely as a result of the echo "$xmpbdate $xavgs" >> $xmpbrpt
However when I attempt to do the same on... (7 Replies)
I have a shell script (Solaris v8 ksh) loading an array from a flat file. An exaple of that flat file is below. It contains white-spaces, and carrage returns. When I try to load the first line as a variable, it (the variable) shows up as the first field not the first line. How do you arrange an... (9 Replies)
Hi
I tried running the below
awk 'BEGIN { printf ("%s %-51s %s %-7s %s",$var1,$var2,$var3,$var4,$var5)}'
from the command prompt and it is not working.
Getting the error
awk: Field $() is not correct.
The source line number is 1.
Actually my requirement is to form a string based on... (6 Replies)
Is it possible to convert the attached file to the format mentioned.
Here for a particular job the table name and the corresponding instance name from one test run "X" is compared with the table name and the instance name from the second test run "Y" for output rows,affected rows,applied... (1 Reply)
Ok, for a fun project, my goal is to replicate the style of "catalog" on an old apple ]
*A 002 SOMEAPPLESOFTFILE
B 004 SOMEFILE
T 006 SOMETEXT
I 002 SOMEINTEGERFILE
The first character is either " " or "*" depending on if the file is locked or not.
Next is the filetype, so in... (1 Reply)
I have input file in this way
John 1234 BASIC 26000
John 1234 ALLOWC 01550
John 1234 INCER 01700
John 1234 REL 20000
Debi 2345 BASIC 29000
Debi 2345 ALLOWC 01600
Debi 2345 INCR 01900
Debi 2345 REL ... (8 Replies)
Hi Experts,
I have to create a report for certain audit and my output looks as follows
I m trying to format my output to look like
Any inputs would be highly appreciated
Thanks
Syed (5 Replies)
Hi Guys,
I've been having some arguments with my colleagues about one thing. Always my thought was that as as far as disk performance is concern by looking at the output of the iostat command (AIX) you would be able to identify if you have a hot disk and then by moving some files out that disk... (3 Replies)
I am using FORTRAN 90 on AIX 5.3 and need to output my data to a tab-delimited file. It must have actual tabs, and I cannot figure out a way to make it work. The resulting file will be imported into another application (quickbooks) as an .iif file....for some reason, it needs the tabs; spaces do... (2 Replies)
Experts,
I'm having problems with a portion of my perl script.
I have a perl array that contains the following:
Port1,circuit3,2;4
Port2,circuit1,9;6
Port3,circuit2,12;5
Port4,circuit4,11;10;3
Port5,circuit7,8;7;1
I'm trying to produce the following output: (3 Replies)
Discussion started by: timj123
3 Replies
LEARN ABOUT NETBSD
pgmtexture
pgmtexture(1) General Commands Manual pgmtexture(1)NAME
pgmtexture - calculate textural features on a portable graymap
SYNOPSIS
pgmtexture [-d d] [pgmfile]
DESCRIPTION
Reads a portable graymap as input. Calculates textural features based on spatial dependence matrices at 0, 45, 90, and 135 degrees for a
distance d (default = 1). Textural features include:
(1) Angular Second Moment,
(2) Contrast,
(3) Correlation,
(4) Variance,
(5) Inverse Difference Moment,
(6) Sum Average,
(7) Sum Variance,
(8) Sum Entropy,
(9) Entropy,
(10) Difference Variance,
(11) Difference Entropy,
(12, 13) Information Measures of Correlation, and
(14) Maximal Correlation Coefficient.
Algorithm taken from:
Haralick, R.M., K. Shanmugam, and I. Dinstein. 1973. Textural features for image classification. IEEE Transactions on Systems, Man, and
Cybertinetics, SMC-3(6):610-621.
BUGS
The program can run incredibly slow for large images (larger than 64 x 64) and command line options are limited. The method for finding
(14) the maximal correlation coefficient, which requires finding the second largest eigenvalue of a matrix Q, does not always converge.
REFERENCES
IEEE Transactions on Systems, Man, and Cybertinetics, SMC-3(6):610-621.
SEE ALSO pgm(5), pnmcut(1)AUTHOR
Copyright (C) 1991 by Texas Agricultural Experiment Station, employer for hire of James Darrell McCauley.
22 Aug 1991 pgmtexture(1)