Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SQL_PROFILE – I explaination Oracle
  • Specify the Rollback segment to use in Transaction Oracle
  • Good Site for Oracle Internals Oracle
  • Good RAC & Standby Notes Oracle
  • Good notes on Oracle Events Oracle
  • good note for shared pool tunnig Oracle
  • oracle fast start failover best practice Oracle
  • Goldengate Tutorial Oracle
  • AWR license Oracle
  • SYSOPER Mystery Oracle
  • metalink all dynamic view reference notes. Oracle
  • CPU speed on solaris Linux/Unix
  • Changing Instance Name ( No DB_NAME) Oracle
  • db_status.sql Oracle
  • Reading config file from other folder inside class Python/PySpark

Logic to chech # of parameters command line parameters

Posted on 05-Oct-2006 By Admin No Comments on Logic to chech # of parameters command line parameters

# Exit if no first parameter $1.

if [ -z “$1” ]

then

echo “Usage: check_parms.ksh

<#_days> (where value is > 100)”

exit 99

fi

# Exit if no second parameter $2.

if [ -z “$2” ]

then

echo “Usage: check_parms.ksh

<#_days> (where value is > 100)”

exit 99

fi

# Exit if parm is not greater than 100.

tmp=`expr $2` # Convert string to number.

if [ $tmp -lt 101 ]

then

echo

echo “Argument two is less than 100.

Aborting Script.”

echo

exit 99

fi

Linux/Unix, shell

Post navigation

Previous Post: oracle tips… from http://www.bijoos.com/oracle/douknow.htm
Next Post: Some useful Unix Commands

Related Posts

  • oracle_env_10g_CADEV Linux/Unix
  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • Directory wise folder wise space usage Linux/Unix
  • To see only files and/or folders using LS command Linux/Unix

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • EXTPROC Oracle
  • Explain Plan Output 2 Oracle
  • track_autoupgrade_copy_progress.sql Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • fkwoindex.sql /* Find FK without Index */ Oracle
  • eplan9i.sql Oracle
  • sess_server.sql Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme