10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I wrote a function for the first time and not able to get the desired result.
I have requirement to execute 10 queries. For this i wrote a function like below.
function Command {
typeset var SOL;
if ; then CONNECTION="${CONNECTION} -e -time";
else SOL="`nzsql ${CONNECTION} -c... (8 Replies)
Discussion started by: Samah
8 Replies
2. Shell Programming and Scripting
O/S solaris 9
shell ksh
if
then
chk_op="WARNING...reboot within the last 24hrs, restarted at `who -r | awk '{print $4$5"@"$6}'`" ;
else
if ;
then
last_reboot1=`who -b | awk '{print $4" "$5" "$6}'`
last_reboot2='..OK..'`uptime | awk '{print$3" "$4}'`
... (4 Replies)
Discussion started by: squrcles
4 Replies
3. Shell Programming and Scripting
Hi ,
Os - Solaris
Shell - Ksh
I am getting below error in if condition
+ id
+
./om_wf_complete.sh: gid=4081(Infadmn): unknown test operator
+ exit 1
if ; then
touch /home/odwt/1.0.0/out/oworkflow.dat
chmod 777 /home/odwt/1.0.0/out/oworkflow.dat
elif ; then
touch... (8 Replies)
Discussion started by: nag_sathi
8 Replies
4. Shell Programming and Scripting
In my script (currently running on Solaris ) I'm testing for zero size with wild character. There are mutilple files exist in the directory.
if
then
filename=`ls -1tr ${fileformat}.${date}.? | tail -1`
else
${BATCH_FATAL:-echo} "$0:ERROR:No file found ${source}/${fileformat}.${date}.?"... (5 Replies)
Discussion started by: gauravgoel83
5 Replies
5. Shell Programming and Scripting
Greetings, using ksh on Solaris, I am trying to identify the current version of a package installed on multiple servers using if statement in a precursor to upgrading.
I have searched the forums and have found many hits, reviewed 3 pages and have tried the different variations noted there. Also... (3 Replies)
Discussion started by: 22blaze
3 Replies
6. Shell Programming and Scripting
Hi All,
can some one figure out the syntax issue here. How to overcome this?
#!/bin/sh
$ HFR_MAIL=NO
$ PRP_MAIL=NO
$ MC_MAIL=NO
$ if && && ]; then
> echo "NO "
> else
> echo "YES"
> fi
test: unknown operator NO
$ if && && ]; then
> echo "NO"
> else
> echo "YES"
>... (4 Replies)
Discussion started by: shellscripter
4 Replies
7. Shell Programming and Scripting
Hi
I want to group
like this but syntactic is not right ...
Thanks
if
Like this below does not work properly ..
if
then
:
else
usage
exit 1
fi (5 Replies)
Discussion started by: zam
5 Replies
8. Shell Programming and Scripting
hi
I get test: unknown operator status
if
then
echo "OK."
return 0
else
echo "not ok" 2>&1
exit -1
fi
I tried to change "A" with 'A' --> same error
I tried to change
if , I am getting: (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
9. UNIX for Advanced & Expert Users
Hi,
I have the following shell script :
Nbr_BD_Link=0
Nbr_BD_Link=`
sqlplus sysadm/${PSWD}@${DB_Name} << EOF | tail -4 | head -1 2>/dev/null
set head off feedback off ;
select count(*) from dba_db_links ;
exit ;
EOF `
echo ${Nbr_BD_Link}
if ; then
... (4 Replies)
Discussion started by: big123456
4 Replies
10. Shell Programming and Scripting
I have gotten the script up to this point and it works fine a system but when i copy it to another unix server running solaris 9 as the original one , its gives an error './mon_fs.sh: 0: unknown test operator' .
(see script bellow)
can the Gurus see to this as i am just a beginner with... (2 Replies)
Discussion started by: ibroxy
2 Replies
DateTime::Locale::gez(3) User Contributed Perl Documentation DateTime::Locale::gez(3)
NAME
DateTime::Locale::gez
SYNOPSIS
use DateTime;
my $dt = DateTime->now( locale => 'gez' );
print $dt->month_name();
DESCRIPTION
This is the DateTime locale package for Geez.
DATA
This locale inherits from the DateTime::Locale::root locale.
It contains the following data.
Days
Wide (format)
XXX
XXX
XXX
XXX
XXX
XXXX
XXX
Abbreviated (format)
XXX
XXX
XXX
XXX
XXX
XXX
XXX
Narrow (format)
X
X
X
X
X
X
X
Wide (stand-alone)
XXX
XXX
XXX
XXX
XXX
XXXX
XXX
Abbreviated (stand-alone)
XXX
XXX
XXX
XXX
XXX
XXX
XXX
Narrow (stand-alone)
X
X
X
X
X
X
X
Months
Wide (format)
XXX
XXX
XXX
XXX
XXXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
Abbreviated (format)
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
Narrow (format)
X
X
X
X
X
X
X
X
X
X
X
X
Wide (stand-alone)
XXX
XXX
XXX
XXX
XXXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
Abbreviated (stand-alone)
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
XXX
Narrow (stand-alone)
X
X
X
X
X
X
X
X
X
X
X
X
Quarters
Wide (format)
Q1
Q2
Q3
Q4
Abbreviated (format)
Q1
Q2
Q3
Q4
Narrow (format)
1
2
3
4
Wide (stand-alone)
Q1
Q2
Q3
Q4
Abbreviated (stand-alone)
Q1
Q2
Q3
Q4
Narrow (stand-alone)
1
2
3
4
Eras
Wide
BCE
CE
Abbreviated
X/X
X/X
Narrow
X/X
X/X
Date Formats
Full
2008-02-05T18:30:30 = XXXX 05 XXX XXXX 2008 X/X
1995-12-22T09:05:02 = XXXX 22 XXX XXXX 1995 X/X
-0010-09-15T04:44:23 = XXXXX 15 XXX XXXX -10 X/X
Long
2008-02-05T18:30:30 = 05 XXX 2008
1995-12-22T09:05:02 = 22 XXX 1995
-0010-09-15T04:44:23 = 15 XXX -10
Medium
2008-02-05T18:30:30 = 05-XXX-2008
1995-12-22T09:05:02 = 22-XXX-1995
-0010-09-15T04:44:23 = 15-XXX--10
Short
2008-02-05T18:30:30 = 05/02/08
1995-12-22T09:05:02 = 22/12/95
-0010-09-15T04:44:23 = 15/09/-10
Default
2008-02-05T18:30:30 = 05-XXX-2008
1995-12-22T09:05:02 = 22-XXX-1995
-0010-09-15T04:44:23 = 15-XXX--10
Time Formats
Full
2008-02-05T18:30:30 = 6:30:30 XXX UTC
1995-12-22T09:05:02 = 9:05:02 XXX UTC
-0010-09-15T04:44:23 = 4:44:23 XXX UTC
Long
2008-02-05T18:30:30 = 6:30:30 XXX UTC
1995-12-22T09:05:02 = 9:05:02 XXX UTC
-0010-09-15T04:44:23 = 4:44:23 XXX UTC
Medium
2008-02-05T18:30:30 = 6:30:30 XXX
1995-12-22T09:05:02 = 9:05:02 XXX
-0010-09-15T04:44:23 = 4:44:23 XXX
Short
2008-02-05T18:30:30 = 6:30 XXX
1995-12-22T09:05:02 = 9:05 XXX
-0010-09-15T04:44:23 = 4:44 XXX
Default
2008-02-05T18:30:30 = 6:30:30 XXX
1995-12-22T09:05:02 = 9:05:02 XXX
-0010-09-15T04:44:23 = 4:44:23 XXX
Datetime Formats
Full
2008-02-05T18:30:30 = XXXX 05 XXX XXXX 2008 X/X 6:30:30 XXX UTC
1995-12-22T09:05:02 = XXXX 22 XXX XXXX 1995 X/X 9:05:02 XXX UTC
-0010-09-15T04:44:23 = XXXXX 15 XXX XXXX -10 X/X 4:44:23 XXX UTC
Long
2008-02-05T18:30:30 = 05 XXX 2008 6:30:30 XXX UTC
1995-12-22T09:05:02 = 22 XXX 1995 9:05:02 XXX UTC
-0010-09-15T04:44:23 = 15 XXX -10 4:44:23 XXX UTC
Medium
2008-02-05T18:30:30 = 05-XXX-2008 6:30:30 XXX
1995-12-22T09:05:02 = 22-XXX-1995 9:05:02 XXX
-0010-09-15T04:44:23 = 15-XXX--10 4:44:23 XXX
Short
2008-02-05T18:30:30 = 05/02/08 6:30 XXX
1995-12-22T09:05:02 = 22/12/95 9:05 XXX
-0010-09-15T04:44:23 = 15/09/-10 4:44 XXX
Default
2008-02-05T18:30:30 = 05-XXX-2008 6:30:30 XXX
1995-12-22T09:05:02 = 22-XXX-1995 9:05:02 XXX
-0010-09-15T04:44:23 = 15-XXX--10 4:44:23 XXX
Available Formats
d (d)
2008-02-05T18:30:30 = 5
1995-12-22T09:05:02 = 22
-0010-09-15T04:44:23 = 15
EEEd (d EEE)
2008-02-05T18:30:30 = 5 XXX
1995-12-22T09:05:02 = 22 XXX
-0010-09-15T04:44:23 = 15 XXX
Hm (H:mm)
2008-02-05T18:30:30 = 18:30
1995-12-22T09:05:02 = 9:05
-0010-09-15T04:44:23 = 4:44
hm (h:mm a)
2008-02-05T18:30:30 = 6:30 XXX
1995-12-22T09:05:02 = 9:05 XXX
-0010-09-15T04:44:23 = 4:44 XXX
Hms (H:mm:ss)
2008-02-05T18:30:30 = 18:30:30
1995-12-22T09:05:02 = 9:05:02
-0010-09-15T04:44:23 = 4:44:23
hms (h:mm:ss a)
2008-02-05T18:30:30 = 6:30:30 XXX
1995-12-22T09:05:02 = 9:05:02 XXX
-0010-09-15T04:44:23 = 4:44:23 XXX
M (L)
2008-02-05T18:30:30 = 2
1995-12-22T09:05:02 = 12
-0010-09-15T04:44:23 = 9
Md (M-d)
2008-02-05T18:30:30 = 2-5
1995-12-22T09:05:02 = 12-22
-0010-09-15T04:44:23 = 9-15
MEd (E, M-d)
2008-02-05T18:30:30 = XXX, 2-5
1995-12-22T09:05:02 = XXX, 12-22
-0010-09-15T04:44:23 = XXX, 9-15
MMdd (dd/MM)
2008-02-05T18:30:30 = 05/02
1995-12-22T09:05:02 = 22/12
-0010-09-15T04:44:23 = 15/09
MMM (LLL)
2008-02-05T18:30:30 = XXX
1995-12-22T09:05:02 = XXX
-0010-09-15T04:44:23 = XXX
MMMd (MMM d)
2008-02-05T18:30:30 = XXX 5
1995-12-22T09:05:02 = XXX 22
-0010-09-15T04:44:23 = XXX 15
MMMEd (E MMM d)
2008-02-05T18:30:30 = XXX XXX 5
1995-12-22T09:05:02 = XXX XXX 22
-0010-09-15T04:44:23 = XXX XXX 15
MMMMd (MMMM d)
2008-02-05T18:30:30 = XXX 5
1995-12-22T09:05:02 = XXX 22
-0010-09-15T04:44:23 = XXX 15
MMMMdd (dd MMMM)
2008-02-05T18:30:30 = 05 XXX
1995-12-22T09:05:02 = 22 XXX
-0010-09-15T04:44:23 = 15 XXX
MMMMEd (E MMMM d)
2008-02-05T18:30:30 = XXX XXX 5
1995-12-22T09:05:02 = XXX XXX 22
-0010-09-15T04:44:23 = XXX XXX 15
ms (mm:ss)
2008-02-05T18:30:30 = 30:30
1995-12-22T09:05:02 = 05:02
-0010-09-15T04:44:23 = 44:23
y (y)
2008-02-05T18:30:30 = 2008
1995-12-22T09:05:02 = 1995
-0010-09-15T04:44:23 = -10
yM (y-M)
2008-02-05T18:30:30 = 2008-2
1995-12-22T09:05:02 = 1995-12
-0010-09-15T04:44:23 = -10-9
yMEd (EEE, y-M-d)
2008-02-05T18:30:30 = XXX, 2008-2-5
1995-12-22T09:05:02 = XXX, 1995-12-22
-0010-09-15T04:44:23 = XXX, -10-9-15
yMMM (y MMM)
2008-02-05T18:30:30 = 2008 XXX
1995-12-22T09:05:02 = 1995 XXX
-0010-09-15T04:44:23 = -10 XXX
yMMMEd (EEE, y MMM d)
2008-02-05T18:30:30 = XXX, 2008 XXX 5
1995-12-22T09:05:02 = XXX, 1995 XXX 22
-0010-09-15T04:44:23 = XXX, -10 XXX 15
yMMMM (y MMMM)
2008-02-05T18:30:30 = 2008 XXX
1995-12-22T09:05:02 = 1995 XXX
-0010-09-15T04:44:23 = -10 XXX
yQ (y Q)
2008-02-05T18:30:30 = 2008 1
1995-12-22T09:05:02 = 1995 4
-0010-09-15T04:44:23 = -10 3
yQQQ (y QQQ)
2008-02-05T18:30:30 = 2008 Q1
1995-12-22T09:05:02 = 1995 Q4
-0010-09-15T04:44:23 = -10 Q3
yyMM (MM/yy)
2008-02-05T18:30:30 = 02/08
1995-12-22T09:05:02 = 12/95
-0010-09-15T04:44:23 = 09/-10
yyQ (Q yy)
2008-02-05T18:30:30 = 1 08
1995-12-22T09:05:02 = 4 95
-0010-09-15T04:44:23 = 3 -10
yyyyMMMM (MMMM y)
2008-02-05T18:30:30 = XXX 2008
1995-12-22T09:05:02 = XXX 1995
-0010-09-15T04:44:23 = XXX -10
Miscellaneous
Prefers 24 hour time?
No
Local first day of the week
XXX
SUPPORT
See DateTime::Locale.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's
license.
perl v5.18.2 2017-10-06 DateTime::Locale::gez(3)