Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • upload.html PHP/MYSQL/Wordpress
  • Remove duplicate rows from table Oracle
  • replace alphabets using sed Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • All About Trace Fils Oracle
  • Find All internal Parameters Oracle
  • dbms_job.submit example Oracle
  • To seee semaphores and shared memory segments in Solaris Linux/Unix
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • ORACLE_SID in sqlplus Oracle
  • Drop tempfiles from database Oracle
  • Privilege to describe the table. Oracle
  • shr1.sql for MTS or Shared server configuration Oracle

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

  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • How to know Number of CPUs on Sun Box Linux/Unix
  • find checksum of a file. Linux/Unix
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • Logic to chech # of parameters command line parameters 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 (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • 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

  • 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
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Search and replace editor command in vi Linux/Unix
  • Giving Grant on v$DATABASE Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • TNSNAMES entries details Oracle
  • tblwopk.sql tablewopk.sql Oracle
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • Jai Shree Ram Linux/Unix
  • Important Solaris Commands Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme