Sponsored Content
Top Forums Shell Programming and Scripting Two columns output in simple case menu? Post 302602755 by Vidhyaprakash on Tuesday 28th of February 2012 09:14:38 AM
Old 02-28-2012
I get 5 columns... Smilie

Code:
============================
      Menu Rotation
============================
1) Rotation 1    3) Rotation 3   5) Rotation 5   7) Rotation 7   9) Back
2) Rotation 2    4) Rotation 4   6) Rotation 6   8) Rotation 8  10) Quit
Votre choix 1

 

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
hypertorus(6x)							XScreenSaver manual						    hypertorus(6x)

NAME
hypertorus - Draws a hypertorus that rotates in 4d SYNOPSIS
hypertorus [-display host:display.screen] [-install] [-visual visual] [-window] [-root] [-delay usecs] [-fps] [-wireframe] [-surface] [-transparent] [-solid] [-bands] [-spirals-{1,2,4,8,16}] [-twosided] [-colorwheel] [-perspective-3d] [-orthographic-3d] [-perspective-4d] [-orthographic-4d] [-speed-wx float] [-speed-wy float] [-speed-wz float] [-speed-xy float] [-speed-xz float] [-speed-yz float] DESCRIPTION
The hypertorus program shows the Clifford torus as it rotates in 4d. The Clifford torus is a torus lies on the "surface" of the hyper- sphere in 4d. The program projects the 4d torus to 3d using either a perspective or an orthographic projection. Of the two alternatives, the perspective projection looks much more appealing. In orthographic projections the torus degenerates into a doubly covered cylinder for some angles. The projected 3d torus can then be projected to the screen either perspectively or orthographically. There are three display modes for the torus: mesh (wireframe), solid, or transparent. Furthermore, the appearance of the torus can be as a solid object or as a set of see-through bands or see-through spirals. Finally, the colors with with the torus is drawn can be set to either two-sided or to a color wheel. In the first case, the torus is drawn with red on the outside and green on the inside. This mode enables you to see that the torus turns inside-out as it rotates in 4d. The second mode draws the torus with a fully saturated color wheel. This gives a very nice effect when combined with the see-through bands or see-through spirals mode. The rotation speed for each of the six planes around which the torus rotates can be chosen. This program is very much inspired by Thomas Banchoff's book "Beyond the Third Dimension: Geometry, Com- puter Graphics, and Higher Dimensions", Scientific American Library, 1990. OPTIONS
hypertorus accepts the following options: -window Draw on a newly-created window. This is the default. -root Draw on the root window. -install Install a private colormap for the window. -visual visual Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual. -delay microseconds How much of a delay should be introduced between steps of the animation. Default 25000, or 1/40th second. The following three options are mutually exclusive. They determine how the torus is displayed. -wireframe Display the torus as a wireframe mesh. -surface Display the torus as a solid surface (default). -transparent Display the torus as a transparent surface. The following seven options are mutually exclusive. They determine the appearance of the torus. -solid Display the torus as a solid object. -bands Display the torus as see-through bands (default). -spirals-1, -spirals-2, -spirals-4, -spirals-8, -spirals-16 Display the torus as see-through spirals with the indicated number of spirals. The following two options are mutually exclusive. They determine how to color the torus. -twosided Display the torus with two colors: red on the outside and green on the inside. -colorwheel Display the torus with a fully saturated color wheel (default). If the torus is displayed as see-through bands each band will be displayed with a different color. Likewise, if the torus is displayed as see-through spirals each spiral will receive a different color. The following two options are mutually exclusive. They determine how the torus is projected from 3d to 2d (i.e., to the screen). -perspective-3d Project the torus from 3d to 2d using a perspective projection (default). -orthographic-3d Project the torus from 3d to 2d using an orthographic projection. The following two options are mutually exclusive. They determine how the torus is projected from 4d to 3d. -perspective-4d Project the torus from 4d to 3d using a perspective projection (default). -orthographic-4d Project the torus from 4d to 3d using an orthographic projection. The following six options determine the rotation speed of the torus around the six possible hyperplanes. The rotation speed is measured in degrees per frame. The speeds should be set to relatively small values, e.g., less than 4 in magnitude. -speed-wx float Rotation speed around the wx plane (default: 1.1). -speed-wy float Rotation speed around the wy plane (default: 1.3). -speed-wz float Rotation speed around the wz plane (default: 1.5). -speed-xy float Rotation speed around the xy plane (default: 1.7). -speed-xz float Rotation speed around the xz plane (default: 1.9). -speed-yz float Rotation speed around the yz plane (default: 2.1). -fps Display the current frame rate, CPU load, and polygon count. INTERACTION
If you run this program in standalone mode you can rotate the hypertorus by dragging the mouse while pressing the left mouse button. This rotates the hypertorus in 3D, i.e., around the wx, wy, and wz planes. If you press the shift key while dragging the mouse with the left button pressed the hypertorus is rotated in 4D, i.e., around the xy, xz, and yz planes. To examine the hypertorus at your leisure, it is best to set all speeds to 0. Otherwise, the hypertorus will rotate while the left mouse button is not pressed. ENVIRONMENT
DISPLAY to get the default host and display number. XENVIRONMENT to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property. SEE ALSO
X(1), xscreensaver(1) COPYRIGHT
Copyright (C) 2003-2005 by Carsten Steger. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. AUTHOR
Carsten Steger <carsten@mirsanmir.org>, 28-sep-2005. X Version 11 5.15 (28-Sep-2011) hypertorus(6x)
All times are GMT -4. The time now is 02:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy