Sponsored Content
Top Forums Shell Programming and Scripting what is problem with this small shell script.. case statement related Post 302150192 by zaideeabu on Monday 10th of December 2007 02:05:57 PM
Old 12-10-2007
Work fine here too... Smilie

sh-3.2$ testing.txt
Enter the character
A
upper case
sh-3.2$ testing.txt
Enter the character
a
Small case
sh-3.2$ testing.txt
Enter the character
3
number
sh-3.2$
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script automation using case statement

Hi, I'm trying to write a shell script that has a menu and then dependant on the selection, will automate some samba file transfer. The problem is when I run the code without the case statement it runs fine. but when I put the case statement in the only way I can get the code to run is to... (6 Replies)
Discussion started by: ianf
6 Replies

2. UNIX for Advanced & Expert Users

Case statement problem

I need to display this menu and accept variables. Can someone tell me why i am having a problem with this case statement, please # TAPE MANAGER MAIN MENU tapemgr_Main_Menu() { echo "Legato Tape Management System Menu" echo " This system is used to report Legato ERV Offsite and Tapes... (6 Replies)
Discussion started by: gzs553
6 Replies

3. Shell Programming and Scripting

Please help to debug a small shell script (maybe AWK problem)?

Hi Buddies, The following is shell scripts which was borrowed from linux box for load average check. it runs good. (this structure is simple, when load average is too high, it will send alert to user) #!/usr/bin/ksh # Set threshold for 1, 5 and 15 minture load avarage # configured for... (4 Replies)
Discussion started by: GreatJerry
4 Replies

4. Shell Programming and Scripting

shell script case statement

In a case statement like below : case $rental in "car") echo "For $rental Rs.20 per k/m";; "van") echo "For $rental Rs.10 per k/m";; "jeep") echo "For $rental Rs.5 per k/m";; "bicycle") echo "For $rental 20 paisa per k/m";; *) echo "Sorry, I can not gat a $rental for you";;... (4 Replies)
Discussion started by: sriram003
4 Replies

5. Shell Programming and Scripting

Problem with case statement

Hi, I need modify the all lines in a file into one format. cat file htec.twe34c.ATI .hesh.twdghu..ATI ..hesh.twdghu..ATI htec.twe3 hjsct14567ati Output should have 16 characters htectwe34c ATI heshtwdghu ATI heshtwdghu ATI htectwe3 ATI hjsct14567 ATI (4 Replies)
Discussion started by: kartheek
4 Replies

6. Shell Programming and Scripting

Problem with CASE statement

Guys, Here is the script syntax which is not accepting the parameters & not performing the said activity. $ ./routing.sh xyz123-ra str enable ********************************************************************** Preparing to service the request for Device xyz123-ra in Question... (9 Replies)
Discussion started by: raghunsi
9 Replies

7. Shell Programming and Scripting

Problem using 'Case' statement

Hi, When I execute the below script, I am getting the error as ' is not expected.ror at line 3 : `in #!/bin/sh case $1 in -r) echo Force deletion without confirmation ;; -i) echo Confirm before deleting ;; *) echo Unknown argument ;; esac I could not see any problem with... (1 Reply)
Discussion started by: Sathish_Obla
1 Replies

8. Shell Programming and Scripting

Problem related to shell script

I am new in shell script.I want to write a shell script to read username and password from file and compare it with the username and password which is entered by the GUI application. (1 Reply)
Discussion started by: shubhig15
1 Replies

9. Homework & Coursework Questions

Problem with executing a possible if or case statement script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Create a phonebook program. It should use functions to perform the required tasks. It should be menu-based,... (1 Reply)
Discussion started by: Rgasin02
1 Replies

10. Shell Programming and Scripting

Case statement in UNIX shell script

have written the below code to check whether the string received from user is a file name or dir using case statement, but its going into default case*). #!/bin/sh #Get a string from user and check whether its a existing filename or not rm str2 rm str3 echo "enter a file \c" read fil... (8 Replies)
Discussion started by: Mohan0509
8 Replies
yacas(1)						      General Commands Manual							  yacas(1)

NAME
yacas, yacas_client -- small and flexible general-purpose computer algebra system SYNOPSIS
yacas [options] [{filename}] DESCRIPTION
This manual page documents briefly the yacas and yacas_client commands. Yacas (Yet Another Computer Algebra System) is a small and highly flexible general-purpose computer algebra language. The syntax uses a infix-operator grammar parser. The distribution contains a small library of mathematical functions, but its real strength is in the lan- guage in which you can easily write your own symbolic manipulation algorithms. The core engine supports arbitrary precision arithmetic, and is linked with the GNU arbitrary precision math library, and is able to execute symbolic manipulations on various mathematical objects by following user-defined rules. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. OPTIONS
A summary of options is given below -c Inhibit printing of prompts "In>" and "Out>". Useful for non-interactive sessions. -f Reads standard input as one file, but executes only the first statement in it. (You may want to use a statement block to have several statements executed.) -p Does not use terminal capabilities, no fancy editing on the command line and no escape sequences printed. Useful for non-interac- tive sessions. -t Enable some extra history recall functionality in console mode: after executing a command from the history list, the next unmodi- fied command from the history list will be automatically entered on the command line. {filename} Reads and executes commands in the filename and exits. Equivalent to "Load()". -v Prints version information and exits. -d Prints the path to the Yacas library directory and exits The default operation of Yacas is to run in the interactive console mode. Yacas accepts several options that modify its operation. Options can be combined. In addition to the console mode, an experimental persistent session facility is provided through the script yacas_client. By means of this script, the user can configure third-party applications to pass commands to a constantly running "Yacas server" and get output. The "Yacas server" is automatically started by yacas_client. It may run on a remote computer; in that case the user should have a user account on the remote computer and privileges to execute yacas_client there, as well as rsh or ssh access. The purpose of yacas_client is to enable users to pass commands to Yacas within a persistent session while running another application such as a text editor. The script yacas_client reads yacas commands from the standard input and passes them to the running "Yacas server"; it then waits 2 seconds and prints whatever output yacas produced up to this time. Usage may looks like this: 8:20pm Unix>echo "x:=3" | yacas_client Starting server. [editvi] [gnuplot] True; To exit Yacas, enter Exit(); or quit or Ctrl-c. Type ?? for help. Or type ?function for help on a function. Type 'restart' to restart Yacas. To see example commands, keep typing Example(); In> x:=3 Out> 3; In> 8:21pm Unix>echo "x:=3+x" | yacas_client In> x:=3+x Out> 6; In> 8:23pm Unix>yacas_client -stop In> quit Quitting... Server stopped. 8:23pm Unix> Persistence of the session means that yacas remembered the value of "x" between invocations of yacas_client. If there is not enough time for Yacas to produce output within 2 seconds, the output will be displayed the next time you call yacas_client. The "Yacas server" is started automatically when first used and can be stopped either by quitting yacas or by an explicit option yacas_client -stop, in which case yacas_client does not read standard input. The script yacas_client reads standard input and writes to standard output, so it can be used via remote shell execution. For instance, if an account "user" on a remote computer "remote.host" is accessible through ssh, then yacas_client can be used remotely like this: echo "x:=2;" | ssh user@remote.host yacas_client On a given host computer running the "Yacas server", each user currently may have only one persistent Yacas session. SEE ALSO
/usr/share/yacas/documentation/books.html (link to URL file:/usr/share/yacas/documentation/books.html) or http://www.xs4all.nl/~apinkus/manindex.html (link to URL http://www.xs4all.nl/~apinkus/manindex.html) for more information. AUTHOR
yacas was written by Ayal Pinkus (apinkus@xs4all.nl). yacas is available at http://www.xs4all.nl/~apinkus/yacas.html (link to URL http://www.xs4all.nl/~apinkus/yacas.html) . This manual page was written by Gopal Narayanan (gopal@debian.org) for the Debian GNU/Linux system (but may be used by others). yacas(1)
All times are GMT -4. The time now is 06:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy