Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Composite Index creation tip from Vivek Oracle
  • fuser to check who is using diretory Linux/Unix
  • Korn Shell Arithmatic Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • TRUNCATE table and disabling referential constraints. Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • get_vmstat_linux Oracle
  • Implementing Listener Security Oracle
  • create database syntax Oracle
  • Mutating Table Error while using database trigger Oracle
  • First Entry in RAC Oracle
  • Find total file sizes Linux/Unix
  • How to know current SID Oracle
  • good note for shared pool tunnig 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

  • Which environment is used by currently running process ( Very good) Linux/Unix
  • restarting network in linux Linux/Unix
  • Space padding in korn shell Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • Passing from Unix to PLSQL using bind variables 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • Renaming Global Name GLOBAL_NAME Oracle
  • ORACLE_SID in sqlplus Oracle
  • get_aix_vmstat.ksh Oracle
  • plan10g.sql Oracle
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Rename Tablespace Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme