SlideShare una empresa de Scribd logo
1 de 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.

Más contenido relacionado

Destacado (11)

Target audience questionnire
Target audience questionnireTarget audience questionnire
Target audience questionnire
 
Rough cut feedback questionnaire
Rough cut feedback questionnaireRough cut feedback questionnaire
Rough cut feedback questionnaire
 
Evaluacion de proyectos
Evaluacion de proyectosEvaluacion de proyectos
Evaluacion de proyectos
 
United Nations Agreement
United Nations AgreementUnited Nations Agreement
United Nations Agreement
 
Arte programa segundo tempo
Arte programa segundo tempoArte programa segundo tempo
Arte programa segundo tempo
 
Diferencia entre los Tipos de virus
Diferencia entre los Tipos de virusDiferencia entre los Tipos de virus
Diferencia entre los Tipos de virus
 
Adaptations in fishes
Adaptations in fishesAdaptations in fishes
Adaptations in fishes
 
Justificacion
JustificacionJustificacion
Justificacion
 
NdP_Akamon, mejor empresa española de social gaming en los premios e digital
NdP_Akamon, mejor empresa española de social gaming en los premios e digitalNdP_Akamon, mejor empresa española de social gaming en los premios e digital
NdP_Akamon, mejor empresa española de social gaming en los premios e digital
 
Probleminhas avaliativos
Probleminhas avaliativosProbleminhas avaliativos
Probleminhas avaliativos
 
Fume tabaco
Fume tabacoFume tabaco
Fume tabaco
 

Más de Ohio University

Transformar a tecnologia em busca diferencial competitivo
Transformar a tecnologia em busca diferencial competitivoTransformar a tecnologia em busca diferencial competitivo
Transformar a tecnologia em busca diferencial competitivoOhio University
 
Gerenciamento de serviços de TI
Gerenciamento de serviços de TIGerenciamento de serviços de TI
Gerenciamento de serviços de TIOhio University
 
eboxx® - Central Monitoring
eboxx® - Central Monitoringeboxx® - Central Monitoring
eboxx® - Central MonitoringOhio University
 
Mediation Group Livestream Example
Mediation Group Livestream ExampleMediation Group Livestream Example
Mediation Group Livestream ExampleOhio University
 
Gerencia de Serviços de TI
Gerencia de Serviços de TIGerencia de Serviços de TI
Gerencia de Serviços de TIOhio University
 
Control-M 800 - Infrastructure Example
Control-M 800 - Infrastructure ExampleControl-M 800 - Infrastructure Example
Control-M 800 - Infrastructure ExampleOhio University
 
Logística de Materiais - Supply Chain
Logística de Materiais - Supply ChainLogística de Materiais - Supply Chain
Logística de Materiais - Supply ChainOhio University
 
Retail Integration Bus (RIB)
Retail Integration Bus (RIB)Retail Integration Bus (RIB)
Retail Integration Bus (RIB)Ohio University
 
Webserver Architecture Example
Webserver Architecture ExampleWebserver Architecture Example
Webserver Architecture ExampleOhio University
 
Cloud Infrastructure Layers - Basics
Cloud Infrastructure Layers - BasicsCloud Infrastructure Layers - Basics
Cloud Infrastructure Layers - BasicsOhio University
 
Sistema de Freio ABS+EBD
Sistema de Freio ABS+EBDSistema de Freio ABS+EBD
Sistema de Freio ABS+EBDOhio University
 
Oracle RMS - Performance
Oracle RMS - PerformanceOracle RMS - Performance
Oracle RMS - PerformanceOhio University
 
Control-M 6.4 Infrastructure
Control-M 6.4 InfrastructureControl-M 6.4 Infrastructure
Control-M 6.4 InfrastructureOhio University
 
Oracle Retail Introduction
Oracle Retail IntroductionOracle Retail Introduction
Oracle Retail IntroductionOhio University
 

Más de Ohio University (18)

Transformar a tecnologia em busca diferencial competitivo
Transformar a tecnologia em busca diferencial competitivoTransformar a tecnologia em busca diferencial competitivo
Transformar a tecnologia em busca diferencial competitivo
 
Gerenciamento de serviços de TI
Gerenciamento de serviços de TIGerenciamento de serviços de TI
Gerenciamento de serviços de TI
 
Applications Server
Applications ServerApplications Server
Applications Server
 
eboxx® - Central Monitoring
eboxx® - Central Monitoringeboxx® - Central Monitoring
eboxx® - Central Monitoring
 
Mediation Group Livestream Example
Mediation Group Livestream ExampleMediation Group Livestream Example
Mediation Group Livestream Example
 
Gerencia de Serviços de TI
Gerencia de Serviços de TIGerencia de Serviços de TI
Gerencia de Serviços de TI
 
Control-M 800 - Infrastructure Example
Control-M 800 - Infrastructure ExampleControl-M 800 - Infrastructure Example
Control-M 800 - Infrastructure Example
 
Logística de Materiais - Supply Chain
Logística de Materiais - Supply ChainLogística de Materiais - Supply Chain
Logística de Materiais - Supply Chain
 
Retail Integration Bus (RIB)
Retail Integration Bus (RIB)Retail Integration Bus (RIB)
Retail Integration Bus (RIB)
 
Webserver Architecture Example
Webserver Architecture ExampleWebserver Architecture Example
Webserver Architecture Example
 
Cloud Infrastructure Layers - Basics
Cloud Infrastructure Layers - BasicsCloud Infrastructure Layers - Basics
Cloud Infrastructure Layers - Basics
 
AWS VPC Objects
AWS VPC ObjectsAWS VPC Objects
AWS VPC Objects
 
Sistema de Freio ABS+EBD
Sistema de Freio ABS+EBDSistema de Freio ABS+EBD
Sistema de Freio ABS+EBD
 
Cache Content 3 Layers
Cache Content 3 LayersCache Content 3 Layers
Cache Content 3 Layers
 
Oracle RMS - Performance
Oracle RMS - PerformanceOracle RMS - Performance
Oracle RMS - Performance
 
Oracle SOA Suite 11g
Oracle SOA Suite 11gOracle SOA Suite 11g
Oracle SOA Suite 11g
 
Control-M 6.4 Infrastructure
Control-M 6.4 InfrastructureControl-M 6.4 Infrastructure
Control-M 6.4 Infrastructure
 
Oracle Retail Introduction
Oracle Retail IntroductionOracle Retail Introduction
Oracle Retail Introduction
 

Último

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 

Último (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

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.