Sponsored Content
Full Discussion: KSH doubt !!!
Top Forums Shell Programming and Scripting KSH doubt !!! Post 9531 by Kelam_Magnus on Monday 29th of October 2001 12:33:42 PM
Old 10-29-2001
goto USE CASE

Witt,

A very nice construct that is far superior to GOTO is CASE. CASE also prevents dead ends and allows for many outcomes depending on the variable.

You can set it up to have infinite conditions, 256 max I believe, to perform various tasks depending on the input to the CASE statement.

Just define $VAR above from some action and CASE will do the rest!


case $VAR in

VAR1 ) Do some statement ;;

VAR2 ) Do different statement ;;

VAR3 ) Do another different statement;;

* ) Do default statement and exit from CASE ;;

esac





Smilie Smilie
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

One doubt

Hi, Can i use the shell script like this? When i am running the script it is hanging not giving me any output. I can redirect the output and then i can do the manipulations also but why this one is wrong. I am confused we can do like this or not.. #!/usr/bin/ksh for line in `top` do... (2 Replies)
Discussion started by: namishtiwari
2 Replies

2. Shell Programming and Scripting

KSH script to run other ksh scripts and output it to a file and/or email

Hi I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email. For example ------- Script ABC ------- a.ksh b.ksh c.ksh I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies

3. UNIX for Advanced & Expert Users

doubt in df -h

in my parition i hav parition like this Filesystem Size Used Avail Use% Mounted on /dev/sda2 24G 22G 756M 97% / /dev/sda5 248G 1.2G 234G 1% /else /dev/sda1 965M 24M 892M 3% /boot tmpfs 7.0G 0 7.0G 0%... (1 Reply)
Discussion started by: ponmuthu
1 Replies

4. Shell Programming and Scripting

Doubt

Hi, I have a file with multiple entries and I have calculated the percentages. Now I want to know how many of my entries are there between 1-10% 11-20% and so on.. chr1_14401_14450 0.211954217888936 chr1_14451_14500 1.90758796100042 chr1_14501_14550 4.02713013988978... (1 Reply)
Discussion started by: Diya123
1 Replies

5. Ubuntu

Doubt

hi ,, i am new for this.. i want to know abt linux os.. which version is best for it industry.. please suggest me..:cool: (1 Reply)
Discussion started by: c vignesh kumar
1 Replies

6. UNIX for Beginners Questions & Answers

Doubt

in my shell script requirement is to search and replace the file with variable so i use the following command sed -i "s/abc/$SCHEMA/g" table.sql later when the script runs sqlplus username/pwd@Table& this & is not letting the variable to replace the value inside the file .please let me know... (1 Reply)
Discussion started by: bhuvan1
1 Replies
PARAVIEW(1)						      General Commands Manual						       PARAVIEW(1)

NAME
Paraview - Rendering and displaying program for small and large, three dimensional datasets. SYNOPSIS
paraview [-cc | --cave-configuration FILE] [--compare-view OPT] [--connect-id ID] [--data DATA] [--data-directory DIR] [-dr | --disable- registry] [--exit] [/? | --help] [--image-threshold THRESH] [-m | --machines FILE] [--run-test CASE] [--run-test-init CASE] [-s | --server NAME] [--stereo] [--test-directory DIR] [-V | --version] DESCRIPTION
Paraview is a program for displaying and rendering of small to large datasets in two or three dimensions. It runs on a single computer or on a cluster of nodes with distributed or shared memory. The Visualization Toolkit (VTK) is used as processing and rendering machine. Options -cc | --cave-configuration FILE Specify the file FILE that defines the displays for a cave. It is used only with CaveRenderModule. --compare-view OPT Compare the viewport to a reference image, and exit. --connect-id ID Set the ID of the server and client to make sure they match. --data DATA Load the specified DATA. --data-directory DIR Set the data DIR directory where test-case data are. -dr | --disable-registry Do not use registry when running ParaView (for testing). --exit Exit application when testing is done. Use for testing. /? | --help Displays available command line arguments. --image-threshold THRESH Set the threshold THRESH beyond which viewport-image comparisons fail. -m | --machines FILE Specify the network configurations file FILE for the render server. --run-test CASE Run a recorded test case CASE. --run-test-init CASE Run a recorded test initialization case CASE. -s | --server NAME Set the name NAME of the server resource to connect with when the client starts. --stereo Tell the application to enable stereo rendering (only when running on a single process). --test-directory DIR Set the temporary directory DIR where test-case output will be stored. -V | --version Give the version number and exit. SEE ALSO
On-line documentation from the program help menu, wiki pages at http://paraview.org/Wiki/ParaView, FAQ at http://paraview.org/Wiki/Par- aView:FAQ and mailing list at http://public.kitware.com/mailman/listinfo/paraview AUTHOR
Gerber van der Graaf 21 May 2008 PARAVIEW(1)
All times are GMT -4. The time now is 06:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy