03-27-2006
if [ !z "$PACKAGE" ]
Was that a typo ? If yes, try if [ -z "$PACKAGE" ]
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys, I have a piece of snippet below which asks the user to input some numbers
if isDatasubEnabled && isReconEnabled; then
echo "1 = CGT, 2 = Subscriber, 3 = Order Monitor, 4 = Revaluations, 5 = Reconciliation, 6 = All, 7 = Exit"
elif isDatasubEnabled &&... (4 Replies)
Discussion started by: pyscho
4 Replies
2. Shell Programming and Scripting
Hello Everyone,
I have the following script;
------------------------------------------------------------------
#!/bin/ksh
set HSC=$1
set SEX=$2
set EXP='export ORACLE_SID=AFISDB'
if ($#argv !=2);
then
echo Usage $0 HSC SEX
else
date > modify_gender_trace.txt
$EXP
echo... (5 Replies)
Discussion started by: wingcross
5 Replies
3. Shell Programming and Scripting
Hello all,
I am working on a script and have the first part solved of numerical input validation. Below the code validates that the input is a numerical value between 100 and 1000. If not, it errors out. Now I need to be able to read values separated by a comma. For example, instead of my... (5 Replies)
Discussion started by: LinuxRacr
5 Replies
4. Shell Programming and Scripting
Hi,
I'm trying to do input validation for a file. If the user fails to enter a file name, the script should prompt for the file name or exit. I'm using this script to integrate with a bigger script which does ftp of the files which are "read".
#!/bin/ksh
echo "enter a file name"
if
then... (16 Replies)
Discussion started by: sam_bd
16 Replies
5. Shell Programming and Scripting
The Code:
#!/usr/bin/perl
use strict;
use warnings;
print "Please enter numbers, separated by commas: ";
my $data=<STDIN>; chomp $data;
my @dataset=split(/,/, $data);
my $sum = 0;
foreach my $num (@dataset) {
$sum += $num;
}
my $total_nums = scalar(@dataset);
my $mean =... (1 Reply)
Discussion started by: 300zxmuro
1 Replies
6. Windows & DOS: Issues & Discussions
I need to insert the validation in my batch script.When user enter the value it should be numeric+minimum length should be 2 for e.g. 02,03 if he puts 1a,1A,2a3 t hen should print the message that it is wrong and print te message enter valid value.
Echo RC is in format of 02
set /p... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
7. Windows & DOS: Issues & Discussions
Hi
I need to put the validation in batch script when user will enter the build number it should be numeric.I can put the validation for numeric values but there is .(dot) in number so it would not take it as numeric.
Is it possible we can store it in variable and remove the .(dot) from the... (1 Reply)
Discussion started by: anuragpgtgerman
1 Replies
8. Shell Programming and Scripting
Dear Friends,
I am looking for a shell script to merge input files into one file .. here is my idea:
1st paramter would be outfile file (all input files content)
read all input files and merge them to input param 1
ex: if I pass 6 file names to the script then 1st file name as output file... (4 Replies)
Discussion started by: hyd1234
4 Replies
9. UNIX for Dummies Questions & Answers
Hi Experts,
I've a script where users will input the email id. I want to loop the script until the user enter proper email id.
Its validating for all condition and error out if any wrong data, but for one condition alone its not erroring out.
Capture_EmailID()
{
echo -e "Please Enter... (1 Reply)
Discussion started by: senthil.ak
1 Replies
VIPS(1) General Commands Manual VIPS(1)
NAME
vips - run vips operations from the command line
SYNOPSIS
vips [options] [command] [command-options] [command-args]
DESCRIPTION
vips(1) is the VIPS universal main program. You can use it to run any VIPS operation from the command line, to query the VIPS function
database, and to maintain parts of the VIPS library.
To run a VIPS function, the first argument should be the name of the function and following arguments should be the function parameters.
For example:
$ vips im_invert lena.v lena2.v
OPTIONS
-p PLUGIN, --plugin=PLUGIN
Load PLUGIN. Note that plugins in $VIPSHOME/lib are loaded automatically.
-v, --version
Show VIPS version.
COMMANDS
list PACKAGE
List operations defined in PACKAGE. PACKAGE can also be "classes", "packages" or "all".
cpph PACKAGE
Print C++ header for PACKAGE. PACKAGE can also be a function name, or "all".
cppc PACKAGE
Print C++ binding for PACKAGE. PACKAGE can also be a function name, or "all".
operation-name operation-arguments
Execute a named operation, for example im_invert, or add. Names prefixed with "im_" are called via the vips7 interface, names with-
out the prefix use the new vips8 interface.
EXAMPLES
Run a vips7 operation. The vips7 interface does not suport optional arguments.
$ vips im_invert lena.v lena2.v
Run a vips8 operation. Operation options must follow the operation name.
$ vips add --imtest=option.jpg lena.v lena2.v out.v
Get a "usage" message for an operation
$ vips add
VipsAdd (add), add two images
add left right out
where:
left :: VipsImage (input)
right :: VipsImage (input)
out :: VipsImage (output)
optional arguments:
imtest :: VipsImage (input)
booltest :: gboolean (input)
RETURN VALUE
returns 0 on success and non-zero on error.
SEE ALSO
header(1)
COPYRIGHT
The National Gallery and Birkbeck College, 1989-1996.
30 June 1993 VIPS(1)