Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Creating never expiring DB user accounts in Oracle Oracle
  • More info about /proc folder and its relation with processes. Linux/Unix
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Changing default shell Linux/Unix
  • lck.sql Oracle
  • Pending Transaction Neighbors Script Oracle
  • Free conference number from http://www.freeconference.com Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • How to stop OCSSD Daemon Oracle
  • Index Range Scan Oracle
  • My Test Case On 21-OCT-2005 Oracle
  • find checksum of a file. Linux/Unix
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Reading config file from other folder inside class Python/PySpark

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

  • How to collect CPU usage on Linux using Shell script Linux/Unix
  • check_copy_progress.sh Linux/Unix
  • Debugging Shell FIles Linux/Unix
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • switchlogfile.sh Linux/Unix
  • Some useful Unix Commands 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)
  • 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
  • Checking SQL Server Version SQL Server
  • Creating never expiring DB user accounts in Oracle Oracle
  • sess1.sql Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • How to calculate PROCESSES parameter Oracle
  • good note for shared pool tunnig Oracle
  • SQL_PROFILE – I explaination Oracle
  • longtx.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme