Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • cif crons Linux/Unix
  • perf_today.sql Oracle
  • Implementing Listener Security Oracle
  • Processes Parameter decision Oracle
  • Validating ORACLE_SID againt oratab file. Linux/Unix
  • Import and export statements Oracle
  • Session_info.ksh Linux/Unix
  • send email from unix mailx with attachment. Linux/Unix
  • Goldengate Tutorial Oracle
  • Finding Oracle Patches with opatch Oracle
  • Changing Instance Name ( No DB_NAME) Oracle
  • Jai Shree Ram Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Removing Blank lines from file using grep Linux/Unix

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

  • proper cpu stats Linux/Unix
  • Kernel Parameters for Solaris Linux/Unix
  • .profile Linux/Unix
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • backspace in SQL Plus not working then..? Linux/Unix
  • Small sample shell program Linux/Unix

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Another export with Query Oracle
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • cp_filesystem.sql Oracle
  • create database link syntax Oracle
  • plan10g.sql good Oracle
  • How to know current SID Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • Pending Transaction Neighbors Script Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme