![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need script to convert number in hexadecimal | mips | Shell Programming and Scripting | 5 | 11-08-2008 12:24 PM |
| convert cpp program to c shell script ? | domain | Shell Programming and Scripting | 2 | 12-12-2007 06:43 AM |
| Convert shell script for looping | le0pard13 | Shell Programming and Scripting | 4 | 06-07-2007 08:42 PM |
| Script to move certain number of files every 10 minutes. | amitsayshii | UNIX for Dummies Questions & Answers | 1 | 02-26-2007 04:55 AM |
| Convert minutes to hours, minutes, seconds | Vozx | Shell Programming and Scripting | 1 | 12-09-2005 01:24 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
C Shell Script to convert a number into minutes
Could anyone tell me how to write a C shell script according to the following requirement.
Write a C shell script convertmin which will read in a number, thought of as representing minutes, and print out the number of hours/minutes it represents so: Note: you are required to check exception cases: such as negative number, whether the input is numeric, etc $ convertmin Enter a number of minutes: 128 Result 128 minutes is 2 hours and 8 minutes |
|
|||||
|
Ringo,
You might want to look at the rules of this forum. Once you have, please explain the business application of the script you are trying to write. Most of the time we don't write scripts for people but we do help when they have a script that doesn't work. Most of the time we can tell if a question has to do with business or a business application. I get the feeling this is not one of those times. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|