Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to check current redo log progress redo_progress.sql Oracle
  • TRUNCATE Privs Oracle
  • Jai Shree Ram Oracle
  • Linux CPU info. Linux/Unix
  • Convert multiple rows to single column Oracle
  • Removing Blank lines from file using grep Linux/Unix
  • dbinv.sql Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • create a folder in multiple places Linux/Unix
  • normal maintenance for exp-imp and renaming table Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • online_ts_bkup.sql Oracle
  • send email from unix mailx with attachment. Linux/Unix
  • configUOCIOTTO.ora Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS 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

  • setting prompt display with .profile Linux/Unix
  • How to change hostname in Linux Linux/Unix
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Unix split command to split files 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 (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • 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

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • rm_backup_arch_file.ksh Linux/Unix
  • myfile Oracle
  • Zip and unzip with tar Linux/Unix
  • Very clear article about oracle dataguard Oracle
  • How to choose Driver table in SQL statement Oracle
  • How to check current redo log progress redo_progress.sql Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme