06-05-2007
Hi Vino,
Thanks for replying. I just want to know whether -z will work in perl script.
if it works then the code should be something like
if ( -z "$ARGV[2]" ) then.....fi
Please correct me if I am wrong
Thanks
Ammu
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to I do a check on a variable to see if it's null-- I am using Perl. (4 Replies)
Discussion started by: dangral
4 Replies
2. Shell Programming and Scripting
Hi All,
I am looking for scripts where i need check normal user password and root password for more 100 servers from single server...!
let me explin it what exacltly i need...!
i need to do password audit for more than 600 boxes... :o
for one normal user and root password also...... (5 Replies)
Discussion started by: bullz26
5 Replies
3. Shell Programming and Scripting
i wanna passing an argument which read in a file or a set of files if the files are given in the command line, otherwise use STDIN if no file argument.
i got something like that, but it is not really working.
so can anyone help me? which one is better to use for and how? Use perl.
Thank you
... (0 Replies)
Discussion started by: mingming88
0 Replies
4. Shell Programming and Scripting
If i have a script name.pl
I run it like name.pl -v file.txt -t ext2 -u user -j
how can I edit the array @ARGV so when my script calls
$ARGV = -v file.txt
$ARGV = -j (2 Replies)
Discussion started by: 3junior
2 Replies
5. Shell Programming and Scripting
Hi All,
I want to run a bash script using perl. But they are in the different dir.
#! /usr/bin/perl -w
use strict;
my $root=`pwd`;
chomp($root);
my $cmd=".$root/testdir/ft_623.sh 3 4 5 6 7";
print $cmd;
my @line=`$cmd`;
foreach (@line){
print $_;
}
ft_623.sh (0 Replies)
Discussion started by: Damon sine
0 Replies
6. Shell Programming and Scripting
Hi Guys,
Please help me.. it is urgent. I am writing a perl script to capture command output and redirect it to a logfile.At the same i want to check the return code of the command and log it if the command is not succesful in my logfile.. Here is my code, it is working but system command inside... (2 Replies)
Discussion started by: sriramperumalla
2 Replies
7. Shell Programming and Scripting
in bash:
LIST=`cat $1`
for i in $LIST
do
...
done
how will i do this in perl ?
$1 is my first arguement. I'm a newbie in perl and will appreciate much your help guys ... (4 Replies)
Discussion started by: linuxgeek
4 Replies
8. Shell Programming and Scripting
how do i check if a command line argument is -g?
for example,
if command line argument equals "-g"
{
print "Goodbye \n";
}
else
{
print "Welcome to the program! \n";
} (1 Reply)
Discussion started by: bshell_1214
1 Replies
9. Shell Programming and Scripting
Hi everybody!
I am writing a script which accepts two arguments one of them being a message. All is working except for the message part. That is, to accept text as an argument.
I have trouble storing and echoing a line of text. It seems that writing a few words and store them in an... (6 Replies)
Discussion started by: bluetxxth
6 Replies
10. Shell Programming and Scripting
Hi all,
I have below code through which trying to pick data from specific columns strating from a certain row.
#!/usr/bin/perl
#This script is to pick the specific fields from a files starting from a specific row
# FILE -> Name of the file to be pasd at runtime.
# rn -> Number of the... (4 Replies)
Discussion started by: Abhisrajput
4 Replies
LEARN ABOUT CENTOS
drop_operator
DROP
OPERATOR(7) PostgreSQL 9.2.7 Documentation DROP OPERATOR(7)
NAME
DROP_OPERATOR - remove an operator
SYNOPSIS
DROP OPERATOR [ IF EXISTS ] name ( { left_type | NONE } , { right_type | NONE } ) [ CASCADE | RESTRICT ]
DESCRIPTION
DROP OPERATOR drops an existing operator from the database system. To execute this command you must be the owner of the operator.
PARAMETERS
IF EXISTS
Do not throw an error if the operator does not exist. A notice is issued in this case.
name
The name (optionally schema-qualified) of an existing operator.
left_type
The data type of the operator's left operand; write NONE if the operator has no left operand.
right_type
The data type of the operator's right operand; write NONE if the operator has no right operand.
CASCADE
Automatically drop objects that depend on the operator.
RESTRICT
Refuse to drop the operator if any objects depend on it. This is the default.
EXAMPLES
Remove the power operator a^b for type integer:
DROP OPERATOR ^ (integer, integer);
Remove the left unary bitwise complement operator ~b for type bit:
DROP OPERATOR ~ (none, bit);
Remove the right unary factorial operator x! for type bigint:
DROP OPERATOR ! (bigint, none);
COMPATIBILITY
There is no DROP OPERATOR statement in the SQL standard.
SEE ALSO
CREATE OPERATOR (CREATE_OPERATOR(7)), ALTER OPERATOR (ALTER_OPERATOR(7))
PostgreSQL 9.2.7 2014-02-17 DROP OPERATOR(7)