Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • CTAS with LONG Column for 9i and higher Oracle
  • V$ROLLSTAT status is Full Oracle
  • sess_server.sql Oracle
  • Good Doc 28-JUN-2006 Oracle
  • login.sql Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Good notes for shared pool Oracle
  • Flowers Resize datafiles Oracle
  • findobj.sql Oracle
  • find the files that are 1 day old. Linux/Unix
  • Processes parameter and its dependencies on OS kernel parameters Linux/Unix
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Absolute file number and relative file number Oracle
  • Read CSV file using PySpark 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

  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • find checksum of a file. Linux/Unix
  • cif crons Linux/Unix
  • note id 373303.1 Linux/Unix
  • scp with ssh2 Linux/Unix
  • Generate SSH without password authentication. 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • My Minimum Tuning Programs Oracle
  • Renaming the column name Oracle
  • Alter procedure auditing Oracle
  • V$INSTANCE of Oracle in MYSQL MYSQL
  • plan10g.sql good Oracle
  • Kill a session dynanically using execute immediate Oracle
  • ext#.sql Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme