02-23-2009
sorting the columns should be the way to go.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am needing to create a variable and assign it a value based on the value of a previosly defined variable... I am using KSH..
Example:
VAR1=COMPUTER1
I need another variable like ${VAR1}_FLAG="Y", so it would actually be COMPUTER1_FLAG="Y".
I will be looping through many values in... (2 Replies)
Discussion started by: benefactr
2 Replies
2. Shell Programming and Scripting
Hey all,
I am parsing a file which have records containing one of a number of files names:
".psd", ".cr2", ".crw" , ".cr", ".xi", ".jpg", ".xif" etc
Somewhere on each line there is a value "Namex.psd" "Namex.crw" etc. The position of this name is highly variable
I need to output all the ".psd"... (4 Replies)
Discussion started by: C0ppert0p
4 Replies
3. Shell Programming and Scripting
Simple enough problem I think, I just can't seem to get it right.
The below doesn't work as intended, it's just a function defined in a much larger script:
CheckValues() {
for field in \
Group_ID \
Group_Title \
Rule_ID \
Rule_Severity \
... (2 Replies)
Discussion started by: Vryali
2 Replies
4. Shell Programming and Scripting
I have a group of variables myLINEcnt1 - myLINEcnt10. I'm trying to printout the values using a for loop. I am at the head banging stage since i'm sure it has to be a basic syntax issue that i can't figure out.
For myIPgrp in 1 2 3 4 5 6 7 8 9 10; do
here i want to output the value of... (4 Replies)
Discussion started by: oly_r
4 Replies
5. Shell Programming and Scripting
Hello All,
Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....?
I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping
through a string containing some of these "Illegal Characters". Now... (5 Replies)
Discussion started by: mrm5102
5 Replies
6. Shell Programming and Scripting
Hi All,
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
5 Replies
7. Shell Programming and Scripting
Hi all,
I have a source config file with variables like so:
eth1_ip=192.168.1.99
eth2_ip=192.168.1.123
eth3_ip=172.16.1.1
I am trying to run a script which loops based on the number of eth interfaces on a machine and therefore modifies the variable it calls in the environment based on the... (5 Replies)
Discussion started by: landossa
5 Replies
8. Shell Programming and Scripting
Hello, I have a series of files in sub-directories that I want to loop through, process and name according to the input filename and the various parameters I'm using to process the files. I have a number of each, for example file names like AG005574, AG004788, AG003854 and parameter values like... (2 Replies)
Discussion started by: bdeads
2 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
i have below two files.
FILE:
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="" MOUNTPOINT=""
NAME="/dev/sda1" TYPE="part" SIZE="500M" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="/dev/sda" MOUNTPOINT="/boot"
NAME="/dev/sda2"... (3 Replies)
Discussion started by: balu1234
3 Replies
ZPRINT(1) General Commands Manual ZPRINT(1)
NAME
zprint - show information about kernel zones
SYNOPSIS
zprint [-w] [-s] [-c] [-h] [-t] [-d] [-p <pid>][name]
DESCRIPTION
zprint(1) displays data about Mach zones. By default, zprint will print out information about all Mach zones. If the optional name is
specified, zprint will print information about each zone for which name is a substring of the zone's name.
zprint interprets the following options:
-c (Default) zprint prints zone info in columns. Long zone names are truncated with '$', and spaces are replaced with '.', to allow
for sorting by column. Pageable and collectible zones are shown with 'P' and 'C' on the far right. Zones with preposterously large
maximum sizes are shown with '----' in the max size and max num elts fields.
-h (Default) Shows headings for the columns printed with the -c option. It may be useful to override this option when sorting by col-
umn.
-s zprint sorts the zones, showing the zone wasting the most memory first.
-w For each zone, zprint calculates how much space is allocated but not currently in use, the space wasted by the zone.
-t For each zone, zprint calculates the total size of allocations from the zone over the life of the zone.
-d Display deltas over time, showing any zones that have achieved a new maximum current allocation size during the interval. If the
total allocation sizes are being displayed for the zones in question, it will also display the deltas if the total allocations have
doubled. -p <pid> Display zone usage related to the specified process id. Each zone will display standard columns and the amount
of memory from that zone associated with a given process. The letter "A" in the flags column indicates that this total is being
accounted to the process. Otherwise, the total is an indication of the influence the process has on the kernel, but the memory is
being accounted to the kernel proper.
Any option (including default options) can be overridden by specifying the option in upper-case; for example, -C overrides the (default)
option -c.
02/12/09 ZPRINT(1)