02-01-2012
Quote:
if [[ ! -f ${LIST_NEW}.csv ]]
In ksh this not a "Test", it is a Conditional Expression.
They are described at length in "man ksh" in the section "Conditional Expressions".
There is much overlap in the syntax between a "Test" and a "Conditional Expression" but they are not the same.
This User Gave Thanks to methyl For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello!!!
I need a korn shell script in AIX that inside sftp environment, changes a remote directory, lists the files inside it, and stores in an array.
I got it working before make a sftp, but after.. I can't..
The way it is, it lists the files in local path... so.. not what I want, but... (1 Reply)
Discussion started by: alienET
1 Replies
2. Shell Programming and Scripting
I'm trying to write a script to verify that file systems mounted properly after a reboot or a script that any system admin can run to verify that all file systems are mounted properly. With HP-UX, I can run a mount -aQ and it will mount file systems not already mounted and report back any... (1 Reply)
Discussion started by: DRPearce
1 Replies
3. AIX
Ho do I find out the verion of the Kron shell on my client`s system ?
There is no one to ask. They are not knowledged enough (hard to believe but yes).
Also, on that AIX 4.2, I am trying to figure out how to do a grep using a search patter like below but does not seam to work. The '*' do... (11 Replies)
Discussion started by: Browser_ice
11 Replies
4. Shell Programming and Scripting
In a Korn shell script I have,
cat ../header | sed -e 's/flag1/$cnumb/g' > header.txt
The header is short
{{Company flag1}}
But the result in header.txt is
{{Company $cnumb}}
The value of $cnumb is 120. I am trying to get the value of $cnumb into the header.
I have tried /'$cnumb'/g,... (10 Replies)
Discussion started by: jcarrott
10 Replies
5. AIX
Greetings Aix gurus,
I have been appointed the task to port my SAS environment on HP-UX to AIX...
I have been able to solve most issues but I am stuck with the following lines (these were easy to find, since in shell scripts but I found out that there are plenty more and encapsulated in SAS... (1 Reply)
Discussion started by: vbe
1 Replies
6. Shell Programming and Scripting
Hi
I wanted to print/store just a specific element of the list . I have got the list as an output of grep command.
here is code snap below :
end_no=`egrep -ni '!return code: 0|return code other than 0' temp.log | cut -d':' -f1`
this will return the line numbers in end_no. I just... (2 Replies)
Discussion started by: Shell@korn
2 Replies
7. Shell Programming and Scripting
Korn Shell in AIX 6.1
I want to print the below shown pipe (|) separated list line by line.
line=es349889|nhb882309|ts00293|snh03524|bg578835|bg37900|rnh00297|py882201|sg175883
for i in line
do
echo "Hello $line "
done
I wanted to execute the above for loop. But i can't even set the... (3 Replies)
Discussion started by: polavan
3 Replies
8. Shell Programming and Scripting
Hi,
Consider the code snippet below:
fun()
{
while read x
do
echo $x
done < somefile_that_does_not_exists
}
fun
echo I am here
Korn shell on HPUX prints the message "I am here", while the behaviour is different on AIX korn shell. We do not get the message on AIX. Any... (5 Replies)
Discussion started by: 116@434
5 Replies
9. Shell Programming and Scripting
Guys, please help! I am currently using an AIX server however whenever I tried to use the typeset -F3, the variable is resulting with a "#".
In the given example below, I declared x to be a decimal holding 3 decimal places = 1.455. However whenever I tried to echo the $x, the resulting value... (9 Replies)
Discussion started by: zzavilz
9 Replies
10. UNIX for Beginners Questions & Answers
Hello, I'm new to this forum.
Forgive a question that may have been asked, but I would like to get advice on options for backups of an AIX server.
The AIX server in question has about 2TB of storage, with 3 Oracle databases configured on it
We're currently using tar backups to tape, LTO... (1 Reply)
Discussion started by: terrya
1 Replies
LEARN ABOUT REDHAT
xmbuttonbox
XmButtonBox(3X) XmButtonBox(3X)
NAME
The Button Box widget
SYNOPSIS
#include <Xm/ButtonBox.h>
DESCRIPTION
The Button Box widget manages children (usually buttons) in a single row or single column layout.
The Button Box maintains equal spacing between its children at all times and attempts to adjust its height and width as necessary so that
all children will fit. If this is not possible, due to parent or application programmer constraints, the Button Box will resize its chil-
dren as necessary to fit within the available space.
Note: in what follows, major direction refers to the direction of orientation, and minor direction refers to the perpendicular direction.
Normal Resources
Name Class Type Initial Value
equalSize EqualSize Boolean False
fillOption FillOption unsigned char XmFillNone
marginHeight Margin VerticalDimension 0
marginWidth Margin HorizontalDimension 0
orientation Orientation unsigned char XmHORIZONTAL
All resource names begin with XmN and all resource class names begin with XmC.
equalSize
Specifies whether the children are to be maintained with equal sized heights and widths. The chosen height and width for the children is
found by asking each child for its preferred size and taking the largest value in each direction.
fillOption
Specifies how to use any extra space left over once all children have been sized according to either their preference or equalSize. There
are four options:
XmFillNone
No automatic filling is performed. Center the children in the minor direction and place the children with equal padding between them in the
major direction.
XmFillMinor
Place the children with equal padding between them in the major direction, but force all the children to take on the Button Box minor
dimension as their minor direction.
XmFillMajor
Center the children in the minor direction, but expand all the children in their major direction so that there is no padding between them.
Expand the children such that their relative sizes remain constant.
XmFillAll
This option combines the placement actions and sizing actions of XmFillMinor and XmFillMajor.
Regardless of the fill mode, the ButtonBox widget will always leave the specified margin between its edge and the nearest child. A new
String to fillOption resource converter has been registered to convert the following strings to fill options: "none", "major", "minor",
"all." This resource can therefore be set in an application defaults file.
marginHeight
marginWidth
Specifies the number of pixels to use as a margin around the entire group of children. The marginHeight value applies to both the top and
bottom margins, while the marginWidth applies to the left and right margins.
orientation
Specifies whether children are to be placed in a row or a column. The orientation may be either XmHORIZONTAL or XmVERTICAL. If the orienta-
tion is XmHORIZONTAL, the children are placed in a row with the major dimension being width and the minor dimension being height. If the
value is XmVERTICAL, the children are placed in a column with the major dimension being height and the minor dimension being width. The
default value is XmHORIZONTAL.
Convenience Routines
XmCreateButtonBox
XmCreateButtonBox(
Widget parent, /* Widget id of parent for new ButtonBox */
String name, /* Name of the created widget */
ArgList args, /* argument list */
Cardinal num_args /* number of items in argument list */
)
Translations and Actions:
The Button Box manager inherits all of its translations and actions from its superclass.
COPYRIGHT
Copyright (c) 1992 by Integrated Computer Solutions, Inc.
XmButtonBox(3X)