Sponsored Content
Full Discussion: reduce the or conditions
Top Forums Shell Programming and Scripting reduce the or conditions Post 302116277 by cfajohnson on Wednesday 2nd of May 2007 06:38:03 PM
Old 05-02-2007
Quote:
Originally Posted by hitmansilentass
Hi ,

how can i reduce the or conditions:

if [[ -z $XXXX || -z $YYYYY || -z $TTTT || -z $NNNN || -z $QQQQ ]]; then

whatever

fi

To exit the script if any var is empty or unset:

Code:
: ${XXXX:?} ${YYYYY:?} ${TTTT:?} ${NNNN:?} ${QQQQ:?}

To execute something if any parameter is empty or unset:

Code:
var=${XXXX:+A}${YYYYY:+A}${TTTT:+A}${NNNN:+A}${QQQQ:+A}
if [ ${#var} -ne 5 ]; then

 

10 More Discussions You Might Find Interesting

1. AIX

reduce available ram

hello, we have a aix 5.2 server with 8GB of ram. is it possible, without actually removing the hardware, to have the O/S think it has only 4GB of ram? We would like to see how the handles and responds if it only had 4Gb instead of the 8GB. Any ideas or suggestions? Thanks Looks like i found... (6 Replies)
Discussion started by: zuessh
6 Replies

2. UNIX for Dummies Questions & Answers

Can I reduce sysdump?

Hi, I have a server which is running out of space on the rootvg. When trying to find some spare space I discovered there are 2 sysdump logical volumes, each of 5GB, yet if I get an estimate of the dump size it's only 0.5 GB. $ lsvg -l rootvg|grep sysdump hd71 sysdump 20 ... (1 Reply)
Discussion started by: m223464
1 Replies

3. Shell Programming and Scripting

To reduce execution time

Hi All, The below script I run daily and it consumes 2 hours approx. In this I am calling another script and executing the same twice. Is the loop below the cause for the slow process?Is it possible to finetune the program so that it runs in a much faster way? The first script: #!/bin/ksh... (4 Replies)
Discussion started by: Sreejith_VK
4 Replies

4. Shell Programming and Scripting

reduce a string

hi i have a string "hostname=lpdma520_dev_ipc_us_aexp_com" now i need only "newHostname=lpdma520" how to do this one please help soon (2 Replies)
Discussion started by: satish@123
2 Replies

5. AIX

reduce used paging space

Hi I have used gzip on AIX and the used paging space has jumped from 7% to 20%. The gzip process is finished since a long time. But the used paging space is still the same. How to release this space ? (1 Reply)
Discussion started by: bfarah
1 Replies

6. Shell Programming and Scripting

Reduce

printf "\nClosing stats:\n" >> data.txt echo >> data.txt sed 's/^ \t*//;/^#/d;/^$/d' $stats | while read line do close=$(grep -w "^$line" $datafile | sed -e 's/\(.*\),\(.*\),\(.*\)/\2/') if ; then printf "%5d. %-s was not found in file\n"... (3 Replies)
Discussion started by: jafa401
3 Replies

7. Shell Programming and Scripting

How to reduce code.....

Hi All, Could some one help me to reduce the code... if then ./plist -m "$queuename" |grep $2|awk '{print $3}' >unlock.log elif then ./plist -m "$queuename" |grep $2|awk '{print $4}' >unlock.log else ./plist -m "$queuename" |grep $2|awk '{print $5}' >unlock.log . . . . ... (1 Reply)
Discussion started by: harshakusam
1 Replies

8. Shell Programming and Scripting

Errors in if conditions with to many OR conditions

Hi ALL I have a script where in i need to check for several values in if conditons but when i execute the script it throws error such as "TOO MANY ARGUMENTS" if then msg="BM VAR Issue :: bmaRequestVAR=$bmaRequestVAR , nltBMVAR=$nltBMVAR , bmaResponseVAR=$bmaResponseVAR ,... (10 Replies)
Discussion started by: nikhil jain
10 Replies

9. Shell Programming and Scripting

Help to reduce time of archiving

hi all, i have written the following script that does this work: 1. copy large logs files from one server to another. 2. then unzip this files and extraxt from these large https logs only those fields that are neccesary. 3. then archive the extracted logs to new files. BUT the problem is... (7 Replies)
Discussion started by: arrals_vl
7 Replies

10. Shell Programming and Scripting

Reduce the space every four hours

Hi Team, Please help me in shell script, I have a some file in Linux which I want to reduce the space every 4 hours in the form of ZIP move to other location with the help of Shell Script using with with current date. Can you please help me. Regards, Suhail (3 Replies)
Discussion started by: frsuhail001
3 Replies
DateTime::Locale::ru_UA(3)				User Contributed Perl Documentation				DateTime::Locale::ru_UA(3)

NAME
DateTime::Locale::ru_UA SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'ru_UA' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Russian Ukraine. DATA
This locale inherits from the DateTime::Locale::ru locale. It contains the following data. Days Wide (format) XXXXXXXXXXX XXXXXXX XXXXX XXXXXXX XXXXXXX XXXXXXX XXXXXXXXXXX Abbreviated (format) XX XX XX XX XX XX XX Narrow (format) X X X X X X X Wide (stand-alone) XXXXXXXXXXX XXXXXXX XXXXX XXXXXXX XXXXXXX XXXXXXX XXXXXXXXXXX Abbreviated (stand-alone) XX XX XX XX XX XX XX Narrow (stand-alone) X X X X X X X Months Wide (format) XXXXXX XXXXXXX XXXXX XXXXXX XXX XXXX XXXX XXXXXXX XXXXXXXX XXXXXXX XXXXXX XXXXXXX Abbreviated (format) XXX. XXXX. XXXXX XXX. XXX XXXX XXXX XXX. XXXX. XXX. XXXX. XXX. Narrow (format) X X X X X X X X X X X X Wide (stand-alone) XXXXXX XXXXXXX XXXX XXXXXX XXX XXXX XXXX XXXXXX XXXXXXXX XXXXXXX XXXXXX XXXXXXX Abbreviated (stand-alone) XXX. XXXX. XXXX XXX. XXX XXXX XXXX XXX. XXXX. XXX. XXXX. XXX. Narrow (stand-alone) X X X X X X X X X X X X Quarters Wide (format) 1-X XXXXXXX 2-X XXXXXXX 3-X XXXXXXX 4-X XXXXXXX Abbreviated (format) 1-X XX. 2-X XX. 3-X XX. 4-X XX. Narrow (format) 1 2 3 4 Wide (stand-alone) 1-X XXXXXXX 2-X XXXXXXX 3-X XXXXXXX 4-X XXXXXXX Abbreviated (stand-alone) 1-X XX. 2-X XX. 3-X XX. 4-X XX. Narrow (stand-alone) 1 2 3 4 Eras Wide XX X.X. X.X. Abbreviated XX X.X. X.X. Narrow XX X.X. X.X. Date Formats Full 2008-02-05T18:30:30 = XXXXXXX, 5 XXXXXXX 2008 X. 1995-12-22T09:05:02 = XXXXXXX, 22 XXXXXXX 1995 X. -0010-09-15T04:44:23 = XXXXXXX, 15 XXXXXXXX -10 X. Long 2008-02-05T18:30:30 = 5 XXXXXXX 2008 1995-12-22T09:05:02 = 22 XXXXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXXXXX -10 Medium 2008-02-05T18:30:30 = 5 XXXX. 2008 1995-12-22T09:05:02 = 22 XXX. 1995 -0010-09-15T04:44:23 = 15 XXXX. -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 = 5 XXXX. 2008 1995-12-22T09:05:02 = 22 XXX. 1995 -0010-09-15T04:44:23 = 15 XXXX. -10 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXX, 5 XXXXXXX 2008 X. 18:30:30 UTC 1995-12-22T09:05:02 = XXXXXXX, 22 XXXXXXX 1995 X. 09:05:02 UTC -0010-09-15T04:44:23 = XXXXXXX, 15 XXXXXXXX -10 X. 04:44:23 UTC Long 2008-02-05T18:30:30 = 5 XXXXXXX 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 XXXXXXX 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 XXXXXXXX -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 5 XXXX. 2008 18:30:30 1995-12-22T09:05:02 = 22 XXX. 1995 09:05:02 -0010-09-15T04:44:23 = 15 XXXX. -10 04:44:23 Short 2008-02-05T18:30:30 = 05.02.08 18:30 1995-12-22T09:05:02 = 22.12.95 09:05 -0010-09-15T04:44:23 = 15.09.-10 04:44 Default 2008-02-05T18:30:30 = 5 XXXX. 2008 18:30:30 1995-12-22T09:05:02 = 22 XXX. 1995 09:05:02 -0010-09-15T04:44:23 = 15 XXXX. -10 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 Ed (E d) 2008-02-05T18:30:30 = XX 5 1995-12-22T09:05:02 = XX 22 -0010-09-15T04:44:23 = XX 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 XX 1995-12-22T09:05:02 = 22 XX -0010-09-15T04:44:23 = 15 XX H (H) 2008-02-05T18:30:30 = 18 1995-12-22T09:05:02 = 9 -0010-09-15T04:44:23 = 4 HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 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 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM 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 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d.M) 2008-02-05T18:30:30 = 5.2 1995-12-22T09:05:02 = 22.12 -0010-09-15T04:44:23 = 15.9 MEd (E, M-d) 2008-02-05T18:30:30 = XX, 2-5 1995-12-22T09:05:02 = XX, 12-22 -0010-09-15T04:44:23 = XX, 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 = XXXX. 1995-12-22T09:05:02 = XXX. -0010-09-15T04:44:23 = XXXX. MMMd (d MMM) 2008-02-05T18:30:30 = 5 XXXX. 1995-12-22T09:05:02 = 22 XXX. -0010-09-15T04:44:23 = 15 XXXX. MMMEd (E MMM d) 2008-02-05T18:30:30 = XX XXXX. 5 1995-12-22T09:05:02 = XX XXX. 22 -0010-09-15T04:44:23 = XX XXXX. 15 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXX MMMMEd (E MMMM d) 2008-02-05T18:30:30 = XX XXXXXXX 5 1995-12-22T09:05:02 = XX XXXXXXX 22 -0010-09-15T04:44:23 = XX XXXXXXXX 15 mmss (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 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 (yyyy-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -010-9 yMEd (EEE, yyyy-M-d) 2008-02-05T18:30:30 = XX, 2008-2-5 1995-12-22T09:05:02 = XX, 1995-12-22 -0010-09-15T04:44:23 = XX, -010-9-15 yMMM (MMM y) 2008-02-05T18:30:30 = XXXX. 2008 1995-12-22T09:05:02 = XXX. 1995 -0010-09-15T04:44:23 = XXXX. -10 yMMMEd (E, d MMM y) 2008-02-05T18:30:30 = XX, 5 XXXX. 2008 1995-12-22T09:05:02 = XX, 22 XXX. 1995 -0010-09-15T04:44:23 = XX, 15 XXXX. -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXX -10 yQ (Q y) 2008-02-05T18:30:30 = 1 2008 1995-12-22T09:05:02 = 4 1995 -0010-09-15T04:44:23 = 3 -10 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 1-X XX. 1995-12-22T09:05:02 = 1995 4-X XX. -0010-09-15T04:44:23 = -10 3-X XX. yyMM (MM.yy) 2008-02-05T18:30:30 = 02.08 1995-12-22T09:05:02 = 12.95 -0010-09-15T04:44:23 = 09.-10 yyMMM (MMM yy) 2008-02-05T18:30:30 = XXXX. 08 1995-12-22T09:05:02 = XXX. 95 -0010-09-15T04:44:23 = XXXX. -10 yyMMMEEEd (EEE, d MMM yy) 2008-02-05T18:30:30 = XX, 5 XXXX. 08 1995-12-22T09:05:02 = XX, 22 XXX. 95 -0010-09-15T04:44:23 = XX, 15 XXXX. -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 yyyy (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yyyyLLLL (LLLL y) 2008-02-05T18:30:30 = XXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXX -10 yyyyMM (MM.yyyy) 2008-02-05T18:30:30 = 02.2008 1995-12-22T09:05:02 = 12.1995 -0010-09-15T04:44:23 = 09.-010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXX -10 yyyyQQQQ (QQQQ y 'X'.) 2008-02-05T18:30:30 = 1-X XXXXXXX 2008 X. 1995-12-22T09:05:02 = 4-X XXXXXXX 1995 X. -0010-09-15T04:44:23 = 3-X XXXXXXX -10 X. Miscellaneous Prefers 24 hour time? Yes Local first day of the week XXXXXXXXXXX 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::ru_UA(3)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy