Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Optimizer_Index init.ora parameter explaination. Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Removing first line Linux/Unix
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • database trigger failing Oracle
  • Mutating Table Error while using database trigger Oracle
  • tracksqltime.sql Oracle
  • import-export with multiple files Oracle
  • sql_plan9i.sql Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • To see only files and/or folders using LS command Linux/Unix
  • Find Stale DR Physical Standby Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • newupload.html PHP/MYSQL/Wordpress

Korn Shell Arithmatic

Posted on 23-Jan-2006 By Admin No Comments on Korn Shell Arithmatic

Method 1

========

One more way of adding two numbers.

Which one to use depends on which shell it is.

d=400

e=52

f=`expr $d + $e`

print $f

Method 2

========

#!/usr/bin/ksh

let a=$1

let b=$2

let c=a+b

print $c

Linux/Unix, shell

Post navigation

Previous Post: 10g oem configuration
Next Post: All About Trace Fils

Related Posts

  • ipcs -l Linux/Unix
  • xargs use Linux/Unix
  • scp with ssh2 Linux/Unix
  • good linux notes Linux/Unix
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • create a folder in multiple places 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
  • Database link password in user_db_links Oracle
  • Load SPM baseline from AWR Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • cache buffer chain latch Oracle
  • V$transaction notes for finding XID composition. Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix
  • Good RAC & Standby Notes Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme