Basic structure for KSH with ARRAYs.


                                 ######EOF######
                                 #!/bin/ksh

                                 +--------------------------------------------------
                                 |
                                 |Description           : Default KSH-ARRAY
                                 |Author                : Marcos de Benedicto
                                 |Date                  : 08/02/2013
                                 |Version               : 1.0
                                 |
                                 +--------------------------------------------------
  Define KSH ARRAY, name and
                                 set -A ARRAY main ind_1
                       vector
                                 main()
                                 {
                                                       RC=$1
                                                       MSG=$2                                                      This vector is a return code
                                                                                                                   control and centralize exit
                                                       [ ${RC} -eq 0 ] && echo "Exec Ok!" || echo "Exec Not OK!"   command.

                                                       exit ${RC}
                                 }

                                 ind_1()
                                 {
Program execution and return
                                                       PROGRAM EXEC
          code identification.
                                                       ${ARRAY[0]} $?
                                 }

                                 ${ARRAY[1]}
                                 ######EOF######                        Start ARRAY, call vector 1.

More Related Content

PDF
Bimba kids teen - 04-05-2014
DOC
RESERVE_BANK_OF_INDIA_RBI_PAYMENT_NOTIFICATION (2)
PPTX
Justificacion
DOCX
Fichas porlan
PDF
Milan Under the Scope of Fellini
DOCX
Movie response
PDF
Digital english tunisia_2015_provisional_programme
PDF
Bimba kids teen - 04-05-2014
Bimba kids teen - 04-05-2014
RESERVE_BANK_OF_INDIA_RBI_PAYMENT_NOTIFICATION (2)
Justificacion
Fichas porlan
Milan Under the Scope of Fellini
Movie response
Digital english tunisia_2015_provisional_programme
Bimba kids teen - 04-05-2014

Viewers also liked (11)

DOCX
Target audience questionnire
DOCX
Rough cut feedback questionnaire
DOCX
Evaluacion de proyectos
DOC
United Nations Agreement
PPTX
Diferencia entre los Tipos de virus
DOCX
Adaptations in fishes
PPTX
Justificacion
PDF
NdP_Akamon, mejor empresa española de social gaming en los premios e digital
Target audience questionnire
Rough cut feedback questionnaire
Evaluacion de proyectos
United Nations Agreement
Diferencia entre los Tipos de virus
Adaptations in fishes
Justificacion
NdP_Akamon, mejor empresa española de social gaming en los premios e digital
Ad

More from Ohio University (18)

PPTX
Transformar a tecnologia em busca diferencial competitivo
PDF
Gerenciamento de serviços de TI
PDF
Applications Server
PDF
eboxx® - Central Monitoring
PDF
Mediation Group Livestream Example
PDF
Gerencia de Serviços de TI
PDF
Control-M 800 - Infrastructure Example
PDF
Logística de Materiais - Supply Chain
PDF
Retail Integration Bus (RIB)
PDF
Webserver Architecture Example
PPTX
Cloud Infrastructure Layers - Basics
PDF
AWS VPC Objects
PDF
Sistema de Freio ABS+EBD
PDF
Cache Content 3 Layers
PDF
Oracle RMS - Performance
PDF
Oracle SOA Suite 11g
PPTX
Control-M 6.4 Infrastructure
PPT
Oracle Retail Introduction
Transformar a tecnologia em busca diferencial competitivo
Gerenciamento de serviços de TI
Applications Server
eboxx® - Central Monitoring
Mediation Group Livestream Example
Gerencia de Serviços de TI
Control-M 800 - Infrastructure Example
Logística de Materiais - Supply Chain
Retail Integration Bus (RIB)
Webserver Architecture Example
Cloud Infrastructure Layers - Basics
AWS VPC Objects
Sistema de Freio ABS+EBD
Cache Content 3 Layers
Oracle RMS - Performance
Oracle SOA Suite 11g
Control-M 6.4 Infrastructure
Oracle Retail Introduction
Ad

Recently uploaded (20)

PPTX
Chapter 5: Probability Theory and Statistics
PPT
What is a Computer? Input Devices /output devices
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
UiPath Agentic Automation session 1: RPA to Agents
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
Build Your First AI Agent with UiPath.pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
STKI Israel Market Study 2025 version august
PPTX
Configure Apache Mutual Authentication
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPT
Geologic Time for studying geology for geologist
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PPTX
The various Industrial Revolutions .pptx
DOCX
search engine optimization ppt fir known well about this
PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
Chapter 5: Probability Theory and Statistics
What is a Computer? Input Devices /output devices
sbt 2.0: go big (Scala Days 2025 edition)
UiPath Agentic Automation session 1: RPA to Agents
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Taming the Chaos: How to Turn Unstructured Data into Decisions
Build Your First AI Agent with UiPath.pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
Final SEM Unit 1 for mit wpu at pune .pptx
The influence of sentiment analysis in enhancing early warning system model f...
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
STKI Israel Market Study 2025 version august
Configure Apache Mutual Authentication
CloudStack 4.21: First Look Webinar slides
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Geologic Time for studying geology for geologist
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
The various Industrial Revolutions .pptx
search engine optimization ppt fir known well about this
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide

KSH Arrays

  • 1. Basic structure for KSH with ARRAYs. ######EOF###### #!/bin/ksh +-------------------------------------------------- | |Description : Default KSH-ARRAY |Author : Marcos de Benedicto |Date : 08/02/2013 |Version : 1.0 | +-------------------------------------------------- Define KSH ARRAY, name and set -A ARRAY main ind_1 vector main() { RC=$1 MSG=$2 This vector is a return code control and centralize exit [ ${RC} -eq 0 ] && echo "Exec Ok!" || echo "Exec Not OK!" command. exit ${RC} } ind_1() { Program execution and return PROGRAM EXEC code identification. ${ARRAY[0]} $? } ${ARRAY[1]} ######EOF###### Start ARRAY, call vector 1.