I declared a variable x that gets the count(*) from a table. The table name is also defined as a variable.
What's wrong with this statment :
X=” select count(*) from ${table_name}“
then
y = `${X}${table_name}'
echo ${y}
It throws an error saying count not found.
Please... (1 Reply)
i have variables with different values as below in KSH
AU_Holiday=1
SG_Holiday=0
KR_Holiday=1
JP_Holiday=0
$country_cd is the second variable which be one of 'AU' 'SG' 'KR' 'JP' which comes in a for loop.
form that i need to derive the variable like first one and check whether it is equal... (3 Replies)
Hi everybody:
Could anybody tell me how should I declare a empty fieldinto a if stament?
Is it possible like this?:
if ($field == " ") body
Thanks in advance and cheers!! . :D (1 Reply)
I am just stucked in syntax.This is more like a array and for loop problem.
I want to use ls -l command and get filezise and filename of all filenames in the directory in an array (say array#1).
After 2 minutes of sleep, i want to get the same information in another array (say array#2).
The... (4 Replies)
are you suppose to only use one DIR declarations, for example
DIR *dir_ptr;
because I'm declaring mine like so:
DIR *dir_ptr_src, *dir_ptr_dest;
and using it like so:
if( ( dir_ptr_src = opendir ( av ) ) != NULL && ( dir_ptr_dest = opendir( av ) ) != NULL ) /* check if... (3 Replies)
Hi All,
I have the script as below
#!bin/bash
let k=9
if
then
echo "Start"
Hello
echo "End"
else
echo "failed"
fi
function Hello() {
echo "hello !!!!"
}
I got the below error : (4 Replies)
Discussion started by: Balasankar
4 Replies
LEARN ABOUT REDHAT
igawk
IGAWK(1) Utility Commands IGAWK(1)NAME
igawk - gawk with include files
SYNOPSIS
igawk [ all gawk options ] -f program-file [ -- ] file ...
igawk [ all gawk options ] [ -- ] program-text file ...
DESCRIPTION
Igawk is a simple shell script that adds the ability to have ``include files'' to gawk(1).
AWK programs for igawk are the same as for gawk, except that, in addition, you may have lines like
@include getopt.awk
in your program to include the file getopt.awk from either the current directory or one of the other directories in the search path.
OPTIONS
See gawk(1) for a full description of the AWK language and the options that gawk supports.
EXAMPLES
cat << EOF > test.awk
@include getopt.awk
BEGIN {
while (getopt(ARGC, ARGV, "am:q") != -1)
...
}
EOF
igawk -f test.awk
SEE ALSO gawk(1)
Effective AWK Programming, Edition 1.0, published by the Free Software Foundation, 1995.
AUTHOR
Arnold Robbins (arnold@skeeve.com).
Free Software Foundation Nov 3 1999 IGAWK(1)