Sponsored Content
Top Forums Shell Programming and Scripting Two columns output in simple case menu? Post 302602798 by gary_w on Tuesday 28th of February 2012 11:18:32 AM
Old 02-28-2012
FWIW, works fine on Solaris:
Code:
============================
      Menu Rotation
============================
 1) Rotation 1
 2) Rotation 2
 3) Rotation 3
 4) Rotation 4
 5) Rotation 5
 6) Rotation 6
 7) Rotation 7
 8) Rotation 8
 9) Back
10) Quit
Votre choix

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Simple Menu and coding

I am very new to Unix and don't know much about it. I've been trying to create a menu and what I don't understand is how to execute a command once a user makes a selection. I have the menu set up. In fact, the following is the code that I have thus far: #! /bin/csh # This is the UNIX menu... (0 Replies)
Discussion started by: sinjin
0 Replies

2. Shell Programming and Scripting

help with scripting a simple menu

Hi there. I'm trying to teach myself UNIX but the book I bought is a bit confusing. I'm trying out this exercise and I think I'm on the right track, but I'd appreciate any suggestions on how to improve what I have so far. Also, I'm not clear on how to use the read command to utilize the user's... (3 Replies)
Discussion started by: Jsmith
3 Replies

3. UNIX for Dummies Questions & Answers

menu + awk + while + case

the idea is to create script with menu and when option 1 or2 is pressed program should clear screan display info and get back to menu.... I managed some code but getting errors... #!/bin/bash choice1=ls -l|awk'{print $9 $1}' choice2= ls | wc -c choice3=exit while do clear echo "... (8 Replies)
Discussion started by: me.
8 Replies

4. Shell Programming and Scripting

Perl simple text menu with options

Hopefully I'm in the right place. Im new to the forums and linux! I'm looking to add a menu to my perl hangman game i have created. The menu will use user input for the desired option and then perform the operation indicated. I would like something along the lines of: Welcome to Hangman... (1 Reply)
Discussion started by: jahburmski
1 Replies

5. Shell Programming and Scripting

Need help in create menu with 3 sub menu using the case command

hi all i am a newbie to this is there any examples on creating a main menu with 3 sub menu main menu -> option a , b and c a menu -> option 1 ,2 and 3 b menu -> option 1 ,2 c menu -> option 1 ,2 i am getting headache as my code kept getting unexpected EOF ---------- Post... (0 Replies)
Discussion started by: chercm
0 Replies

6. UNIX for Dummies Questions & Answers

Simple bash script menu

Dear Sir, May I know how do I go about adding the following feature into the script below: When user enter values other than 1,2,3,4, a) Message “Wrong entry !!! Pls select 1,2,3 or 4” is displayed b) The screen is cleared again and the menu is displayed. #!/bin/bash clear var=1... (2 Replies)
Discussion started by: fusetrips
2 Replies

7. Shell Programming and Scripting

Simple calculator with menu input - Need Help

I am trying to make a calculator. The user Enters number 1, chooses and operation, enters number 2, then chooses another operation or for the answer to be displayed. eg. 1 + 1 = or 1 + 1 + 2 + 1 = Both of these should be possible. #!/bin/bash read -p "what's the first number? " n1... (3 Replies)
Discussion started by: redshine6
3 Replies

8. Red Hat

Command understanding the output file destination in case of standard output!!!!!

I ran the following command. cat abc.c > abc.c I got message the following message from command cat: cat: abc.c : input file is same as the output file How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies

9. Shell Programming and Scripting

Menu and case statement scripting

hi all i am trying to get help with writing a script using case statement to display menu as 1) Authentication log 2) System log 3) Messages 4) Dmesg 5) Boot log Q) Exit When selecting the menu by 1 or 2 or 3 o 4 or 5, it should display the last 10 lines of the log files, if... (3 Replies)
Discussion started by: renegade11
3 Replies

10. Shell Programming and Scripting

Special case to skip function in bash menu

In the bash menu below if the variant that is inputted is in the format NM_004004.3:c.274G>T the below works perfectly. My question is if the variant inputted isNM_004004.3:-c.274G>T or NM_004004.3:+c.274G>T then the code as is will throw an error due to a biological issue. Is it possible to to... (1 Reply)
Discussion started by: cmccabe
1 Replies
MEGAGLEST_G3DVIEWER(6)						       Games						    MEGAGLEST_G3DVIEWER(6)

NAME
megaglest_g3dviewer - G3D Model editor for the popular 3D realtime stragegy game DESCRIPTION
megaglest_g3dviewer v1.3.6, [Using wxWidgets 2.8.12] usage: megaglest_g3dviewer [G3D FILE] Displays glest 3D-models and unit/projectile/splash particle systems. rotate with left mouse button, zoom with right mouse button or mousewheel. Use ctrl to load more than one particle system. Press R to restart particles, this also reloads all files if they are changed. optionally you may use any of the following: Parameter: Description: ---------------------- ------------ --help displays this help text. --load-unit=x Auto load the unit / skill information specified in path/filename x Where x is a g3d filename to load separated with a comma and one or more skill names to try loading: example: megaglest_g3dviewer --load-unit=techs/megapack/factions/tech/units/battle_machine,attack_skill,stop_skill --load-model=x Auto load the model specified in path/filename x Where x is a g3d filename to load: example: megaglest_g3dviewer --load-model=techs/megapack/factions/tech/units/battle_machine/models/battle_machine_dying.g3d --load-model-animation-value=x Animation value when loading a model Where x is a decimal value from -1.0 to 1.0: example: megaglest_g3dviewer --load-model-animation-value=0.5 --auto-screenshot=x Automatically takes a screenshot of the items you are loading. Where x is a comma-delimited list of one or more of the optional settings: transparent, enable_grid, enable_wireframe, enable_normals, disable_grid, disable_wireframe, disable_normals, saveas-<filename>, resize-wxh example: megaglest_g3dviewer --auto-screenshot=transparent,disable_grid,saveas-test.png,resize-800x600 --load-model=techs/megapack/fac- tions/tech/units/battle_machine/models/battle_machine_dying.g3d --load-particle=x Auto load the particle specified in path/filename x Where x is a Particle XML filename to load: example: megaglest_g3dviewer --load-particle=techs/megapack/factions/persian/units/genie/glow_particles.xml --load-projectile-particle=x Auto load the projectile particle specified in path/filename x Where x is a Projectile Particle Definition XML filename to load: example: megaglest_g3dviewer --load-projectile-particle=techs/megapack/factions/persian/units/genie/particle_proj.xml --load-splash-particle=x Auto load the splash particle specified in path/filename x Where x is a Splash Particle Definition XML filename to load: example: megaglest_g3dviewer --load-splash-particle=techs/megapack/factions/persian/units/genie/particle_splash.xml --load-particle-loop-value=x Particle loop value when loading one or more particles Where x is an integer value from 1 to particle count: example: megaglest_g3dviewer --load-particle-loop-value=25 --zoom-value=x Zoom value when loading a model Where x is a decimal value from 0.1 to 10.0: example: megaglest_g3dviewer --zoom-value=4.2 --rotate-x-value=x X Coordinate Rotation value when loading a model Where x is a decimal value from -10.0 to 10.0: example: megaglest_g3dviewer --rotate-x-value=2.2 --rotate-y-value=x Y Coordinate Rotation value when loading a model Where x is a decimal value from -10.0 to 10.0: example: megaglest_g3dviewer --rotate-y-value=2.2 --screenshot-format=x Specify which image format to use for screenshots. Where x is one of the following supported formats png,jpg,tga,bmp *NOTE: png is the default (and supports transparency) example: megaglest_g3dviewer --screenshot-format=jpg Invalid argument: --version megaglest_g3dviewer v1.3.6, [Using wxWidgets 2.8.12] usage: megaglest_g3dviewer [G3D FILE] Displays glest 3D-models and unit/projectile/splash particle systems. rotate with left mouse button, zoom with right mouse button or mousewheel. Use ctrl to load more than one particle system. Press R to restart particles, this also reloads all files if they are changed. optionally you may use any of the following: Parameter: Description: ---------------------- ------------ --help displays this help text. --load-unit=x Auto load the unit / skill information specified in path/filename x Where x is a g3d filename to load separated with a comma and one or more skill names to try loading: example: megaglest_g3dviewer --load-unit=techs/megapack/factions/tech/units/battle_machine,attack_skill,stop_skill --load-model=x Auto load the model specified in path/filename x Where x is a g3d filename to load: example: megaglest_g3dviewer --load-model=techs/megapack/factions/tech/units/battle_machine/models/battle_machine_dying.g3d --load-model-animation-value=x Animation value when loading a model Where x is a decimal value from -1.0 to 1.0: example: megaglest_g3dviewer --load-model-animation-value=0.5 --auto-screenshot=x Automatically takes a screenshot of the items you are loading. Where x is a comma-delimited list of one or more of the optional settings: transparent, enable_grid, enable_wireframe, enable_normals, disable_grid, disable_wireframe, disable_normals, saveas-<filename>, resize-wxh example: megaglest_g3dviewer --auto-screenshot=transparent,disable_grid,saveas-test.png,resize-800x600 --load-model=techs/megapack/fac- tions/tech/units/battle_machine/models/battle_machine_dying.g3d --load-particle=x Auto load the particle specified in path/filename x Where x is a Particle XML filename to load: example: megaglest_g3dviewer --load-particle=techs/megapack/factions/persian/units/genie/glow_particles.xml --load-projectile-particle=x Auto load the projectile particle specified in path/filename x Where x is a Projectile Particle Definition XML filename to load: example: megaglest_g3dviewer --load-projectile-particle=techs/megapack/factions/persian/units/genie/particle_proj.xml --load-splash-particle=x Auto load the splash particle specified in path/filename x Where x is a Splash Particle Definition XML filename to load: example: megaglest_g3dviewer --load-splash-particle=techs/megapack/factions/persian/units/genie/particle_splash.xml --load-particle-loop-value=x Particle loop value when loading one or more particles Where x is an integer value from 1 to particle count: example: megaglest_g3dviewer --load-particle-loop-value=25 --zoom-value=x Zoom value when loading a model Where x is a decimal value from 0.1 to 10.0: example: megaglest_g3dviewer --zoom-value=4.2 --rotate-x-value=x X Coordinate Rotation value when loading a model Where x is a decimal value from -10.0 to 10.0: example: megaglest_g3dviewer --rotate-x-value=2.2 --rotate-y-value=x Y Coordinate Rotation value when loading a model Where x is a decimal value from -10.0 to 10.0: example: megaglest_g3dviewer --rotate-y-value=2.2 --screenshot-format=x Specify which image format to use for screenshots. Where x is one of the following supported formats png,jpg,tga,bmp *NOTE: png is the default (and supports transparency) example: megaglest_g3dviewer --screenshot-format=jpg megaglest_g3dviewer October 2012 MEGAGLEST_G3DVIEWER(6)
All times are GMT -4. The time now is 01:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy