Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • send email from unix mailx with attachment. Linux/Unix
  • copying/removing directory with all its subdirectory Linux/Unix
  • on IBM-AIX for display Linux/Unix
  • Oracle 11g Training on 29JAN1010 Oracle
  • sess_server.sql Oracle
  • proper cpu stats Linux/Unix
  • New OFA for 11g Oracle
  • shr1.sql for MTS or Shared server configuration Oracle
  • USE_NL and INDEX hints example Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Virtual Indexes in Oracle Oracle
  • Jai Shree Ram Linux/Unix
  • How to start CRS manually Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh 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

  • handling filenname with space Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • on IBM-AIX for display Linux/Unix
  • move_arch_files.ksh 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
  • Kernel Parameters for Solaris Linux/Unix
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • segment_wise_space.sql segspace.sql Segment wise space usage (allocated and used) Oracle
  • Wait time tuning research Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Drop specific SQL plan baseline – spm Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Looping for remote servers and find its database from oratab file. Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme