09-19-2011
try this
Quote:
echo "/home/dragon/websphere/cells/profile/imp/001/" | awk -F'cells' ' {print $1}'
echo "/home/dragon/websphere/cells/profile/imp/001/" | awk -F'cells' ' {print $2}'
Use nawk if using solaris...
10 More Discussions You Might Find Interesting
1. Solaris
deleteing post (0 Replies)
Discussion started by: dshakey
0 Replies
2. Shell Programming and Scripting
hello,
i 'd like your help about a bash script which:
1. finds inside the html file (it is attached with my post) the code number of the Latest Stable Kernel,
2.finds the link which leads to the download location of the Latest Stable Kernel version,
(the right link should lead to the file... (3 Replies)
Discussion started by: alex83
3 Replies
3. Shell Programming and Scripting
Hi all,
I want to make an script using sed that removes everything between 'begin' (including the line that has it) and 'end1' or 'end2', not removing this line.
Let me paste an 2 examples:
anything before
any string begin
few lines of content
end1
anything after
anything before
any... (4 Replies)
Discussion started by: meuser
4 Replies
4. Shell Programming and Scripting
I have a file that looks like this:
102| #2 X 1/4-INCH| 30188| EA| FTW| A| NOT SERIAL TRACKING| NOT LOT TRACKING| TRUE| #2 X 1/4-INCH
102| #2 X 1/4-INCH| 30188| EA| VPS| A| NOT SERIAL TRACKING| NOT LOT TRACKING| TRUE| #2 X 1/4-INCH
102| #6 X 1/2"| ... (2 Replies)
Discussion started by: djehresmann
2 Replies
5. Shell Programming and Scripting
Hi ,
I need to count the number of errors associated with the two words occurring in the file. It's about counting the occurrences of the word "error" for where is the word "index.js". As such the command should look like. Please kindly help. I was trying: grep "error" log.txt | wc -l (1 Reply)
Discussion started by: jmarx
1 Replies
6. Shell Programming and Scripting
Hi
I have strings like these :
Vengeance mitt
Men Vengeance gloves
Women Quatro Windstopper Etip gloves
Quatro Windstopper Etip gloves
Girls Thermobite hooded jacket
Thermobite Triclimate snow jacket
Boys Thermobite Triclimate snow jacket
and I would like to get the lower case words at... (2 Replies)
Discussion started by: louisJ
2 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I would like to change my setting in a file to the setting that user input.
For example, by default it is
ONBOOT=ON
When user key in "YES", it would be
ONBOOT=YES
--------------
This code only adds in the entire user input, but didn't replace it.
How do i go about... (5 Replies)
Discussion started by: malfolozy
5 Replies
8. UNIX for Dummies Questions & Answers
Hi there, newbie there. I've been browsing the forums hoping to find a solution that answers a problem similar to what I need, but haven't had much luck. Any help would be greatly appreciated. Thanks!
I need to delete a bunch of text between every appearance of two words in a really large file... (3 Replies)
Discussion started by: lendl
3 Replies
9. Shell Programming and Scripting
hi,
i need to replace all words in any quote position and then need to change the words inside the file thousand of raw.
textfile data :
"Ninguno","Confirma","JuicioABC"
"JuicioCOMP","Recurso","JuicioABC"
"JuicioDELL","Nulidad","Nosino"
"Solidade","JuicioEUR","Segundo"
need... (1 Reply)
Discussion started by: benjietambling
1 Replies
10. Shell Programming and Scripting
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT REDHAT
xmiconbox
XmIconBox(3X) XmIconBox(3X)
NAME
The IconBox widget class
SYNOPSIS
#include <Xm/IconBox.h>
DESCRIPTION
The Icon Box widget lays out its children on a grid with each child forced to be the same size and with the location of each child speci-
fied as an X and Y location on the grid.
The size of the Icon Box, its children, and the number of cells displayed are calculated as described below. The general idea is that all
children are always be shown and should be given their desired size whenever possible. The user may add or delete cells by resizing this
window using the window manager widget.
o The preferred size is calculated by using the maximum desired child height or width and making sure that these are no smaller than the
minimum sizes. This size is multiplied by the number of cells along the axis and properly padded to come up with a preferred size. The
number of cells is the maximum of the largest cellX or cellY value and the minimum number of horizontal or vertical cells.
o If the Icon box is forced larger than its preferred size more cells are added at the bottom-right of the widget while the children all
remain at their preferred sizes.
o If the Icon box is forced smaller than its preferred size each cell is forced to be smaller in order to allow all children to fit
within the Icon Box. All children will be forced to the same smaller size.
Normal Resources
Name Class Type Init. Value
horizontalMargin Margin HorizontalDimension 4
minimumHorizontalCells DefaultCells Int 8
minimumVerticalCells DefaultCells Int 4
minimumCellHeight MinimumCellSize VerticalDimension 10
minimumCellWidth MinimumCellSize HorizontalDimension 20
verticalMargin Margin VerticalDimension 4
All resource names begin with XmN and all resource class names begin with XmC.
horizontalMargin
verticalMargin
The amount of space between each cell and its neighbor or the edge of the Icon Box.
minimumHorizontalCells
minimumVerticalCells
The minimum number of cells to display in the horizontal and vertical directions. This number of cells will always be displayed.
minimumCellWidth
minimumCellHeight
The smallest size the cells are allowed to be in the direction specified.
Constraint Resources
Name Class Type Initial Value
cellX CellX Short XmIconBoxAnyCell
cellY CellY Short XmIconBoxAnyCell
All resource names begin with XmN and all resource class names begin with XmC.
cellX
cellY
The location of this cell in cell space. These coordinates may be any positive integer. They determine where this widget will be placed
relative to its neighbors. Having two children at the same cell X and cell Y location will result in undefined behavior. To place a cell
at any empty cell, set cell X and cell Y to the value XmIconBoxAnyCell.
Convenience Routines
XmCreateIconBox - Widget creation convenience routine
Widget XmCreateIconBox(
Widget parent, /* Widget id of parent for IconBox */
String name, /* Name of the created widget */
ArgList args, /* argument list */
Cardinal num_args /* number of items in argument list */
)
To find out if a cell in the icon box is empty use the XiIconBoxIsCellEmpty function:
Boolean XmIconBoxIsCellEmpty(Widget w, Position cell_x, Position cell_y)
w the icon box widget
cell_x the x location of the cell to check
cell_y the y location of the cell to check
This function returns True if the specified cell has no child in it, and False otherwise.
SEE ALSO
XiIconButton(3I)
COPYRIGHT
Copyright (c) 1992 by Integrated Computer Solutions, Inc.
XmIconBox(3X)