05-07-2007
ah I'll give that a try, thanks
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HPUX 11i v2 #!/bin/sh
Hi all.
I have a space delimited flat file of about 9000 lines. I would like to get a running total of field 3 to the variable $TOTAL. Field 3 can be formatted as listed....
$ 0.00
$2804.15
<$ 4.14> (negative)
Any ideas are most appreciated!!!! TIA!! (9 Replies)
Discussion started by: lyoncc
9 Replies
2. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
3. Shell Programming and Scripting
Hi. A shell scripting newbie here. I am trying to write a script that will create a running total of Sales, and increment a counter for each Sales entry, but when I executed the program it never stopped.
counter=0
Sales=0
echo "enter sales price"
read sales
while
do
let counter=counter+1... (6 Replies)
Discussion started by: Ccccc
6 Replies
4. Shell Programming and Scripting
Please advice how can we search for a string say (abc) in multiple files and to get total occurrence of that searched string. (Need number of records that exits in period of time).
File look like this (read as filename.yyyymmdd)
a.20100101
b.20100108
c.20100115
d.20100122
e.20100129... (2 Replies)
Discussion started by: zooby
2 Replies
5. Shell Programming and Scripting
Hello.
I have a status command in AIX box, which provides output as below:
$ status
You are running the application on pegasus2
----Program Name------|--Avail / Total---------|
MQ | 1/2 |
ORACLE | 10/10 |
TMADMIN ... (3 Replies)
Discussion started by: panchpan
3 Replies
6. UNIX for Dummies Questions & Answers
Hello Friends,
I know you all are busy and inteligent too...
I am stuck with one small issue if you can help me then it will be really great.
My problem is I am having some files i.e.
Input.txt1
Input.txt2
Input.txt3
Now my task is I need to check the total number of rows in... (4 Replies)
Discussion started by: malaya kumar
4 Replies
7. Solaris
If I have a number of files in a directory, for example,
test.1
test.2
test.3
abc.1
abc.2
abc.3
and I need to find the total file size of all of the test.* files, I can use du -bc test.* in Linux.
However, in Solaris, du does not have the -c option. What can I do in Solaris to get... (11 Replies)
Discussion started by: learnix
11 Replies
8. Shell Programming and Scripting
Hello Friends,
I've been trying to calculate total number of a certain match in multiple data records files (DRs).
Let say I have a daily created folders for each day since the beginning of july like the following
drwxrwxrwx 2 mmsuper med 65536 Jul 1 23:59 20150701
drwxrwxrwx 2 mmsuper... (1 Reply)
Discussion started by: EAGL€
1 Replies
9. Shell Programming and Scripting
Hi All ,
I have multiple pipe delimited csv files are present in a directory.I need to find out distinct count on a column on those files and need the total distinct
count on all files.
We can't merge all the files here as file size are huge in millions.I have tried in below way for each... (9 Replies)
Discussion started by: STCET22
9 Replies
LEARN ABOUT OPENSOLARIS
plot
plot(4B) SunOS/BSD Compatibility Package File Formats plot(4B)
NAME
plot - graphics interface
DESCRIPTION
Files of this format are interpreted for various devices by commands described in plot(1B). A graphics file is a stream of plotting
instructions. Each instruction consists of an ASCII letter usually followed by bytes of binary information. The instructions are executed
in order. A point is designated by four bytes representing the x and y values; each value is a signed integer. The last designated point in
an l, m, n, or p instruction becomes the ``current point'' for the next instruction.
m Move: the next four bytes give a new current point.
n Cont: draw a line from the current point to the point given by the next four bytes. See plot(1B).
p Point: plot the point given by the next four bytes.
l Line: draw a line from the point given by the next four bytes to the point given by the following four bytes.
t Label: place the following ASCII string so that its first character falls on the current point. The string is terminated by a NEW-
LINE.
a Arc: the first four bytes give the center, the next four give the starting point, and the last four give the end point of a circular
arc. The least significant coordinate of the end point is used only to determine the quadrant. The arc is drawn counter-clockwise.
c Circle: the first four bytes give the center of the circle, the next two the radius.
e Erase: start another frame of output.
f Linemod: take the following string, up to a NEWLINE, as the style for drawing further lines. The styles are ``dotted,'' ``solid,''
``longdashed,'' ``shortdashed,'' and ``dotdashed.'' Effective only in plot 4014 and plot ver.
s Space: the next four bytes give the lower left corner of the plotting area; the following four give the upper right corner. The plot
will be magnified or reduced to fit the device as closely as possible.
Space settings that exactly fill the plotting area with unity scaling appear below for devices supported by the filters of plot(1B).
The upper limit is just outside the plotting area.
In every case the plotting area is taken to be square; points outside may be displayable on devices whose face is not square.
4014 space(0, 0, 3120, 3120);
ver space(0, 0, 2048, 2048);
300, 300s space(0, 0, 4096, 4096);
450 space(0, 0, 4096, 4096);
SEE ALSO
graph(1), plot(1B)
SunOS 5.11 18 Feb 2003 plot(4B)