Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBMS_Shared_pool pinning triggers Oracle
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • Kernel Parameters for Solaris Linux/Unix
  • EXTPROC Oracle
  • TNSNAMES entries details Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • plan10g.sql Oracle
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle
  • move_arch_files.ksh Linux/Unix
  • switchover for primary database Oracle

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

  • For Search and replace unix command. Linux/Unix
  • How to sort list of files on basis of their sizes. Linux/Unix
  • telnet listening Linux/Unix
  • How to change hostname in Linux Linux/Unix
  • catall.sh Linux/Unix
  • Transfer SQL Profiles from One database to other database. Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Getting started with notebook Python/PySpark
  • Oracle Identifiers Oracle
  • Adding addidional hard drive and attach it to a linux box. Linux/Unix
  • Reading parameter file and printing Linux/Unix
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • PLSQL Table Syntax 2 Oracle
  • pvm_pre_change.sql Oracle
  • xargs use Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme