Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • myfile Oracle
  • Recovering lost SYS password Oracle
  • Find sort details from Db find_sort.sql Oracle
  • alter database backup controlfile to trace Oracle
  • find_string_in_database.sql Oracle
  • Index Range Scan Oracle
  • find_cons.sql Oracle
  • Finding Oracle Patches with opatch Oracle
  • login.sql Oracle
  • Search and replace editor command in vi Linux/Unix
  • SCRIPT TO LIST RECURSIVE DEPENDENCY BETWEEN OBJECTS UTLDTREE.sql Oracle
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Alter procedure auditing Oracle
  • ORA-3136 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

  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • scp with ssh2 Linux/Unix
  • Kernel Parameters for Solaris Linux/Unix
  • Important Solaris Commands Linux/Unix
  • Monitor and Trace Unix processes using truss Linux/Unix
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. 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
  • Running select from V$ views from remote server Linux/Unix
  • AWR license Oracle
  • to see when crontab is changed. Linux/Unix
  • SQL Server: How to see historical transactions SQL Server
  • Index Range Scan Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • run this before doing any dbchange pvm_pre_change.sql Oracle
  • Find nth max and min. Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme