![]() |
|
|
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 |
| find and replace command in one line using one command | vasikaran | UNIX for Dummies Questions & Answers | 10 | 08-20-2008 11:40 AM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 07:06 PM |
| i want to know entered string ends with .jar | naree | Shell Programming and Scripting | 3 | 03-08-2008 07:24 AM |
| Repeat last entered command ? | vilius | Shell Programming and Scripting | 5 | 09-25-2007 07:15 AM |
| Append 0 for single digit entered from command line | namishtiwari | UNIX for Dummies Questions & Answers | 2 | 08-24-2007 06:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi everyone,
Can someone possibly help me with this problem I am having please. I wrote a Korn shell script to manipulate currency amounts in a way that a person could use this script to determine the minimum number of coins required to make a certain amount. for example when entered on the command line: $coins 5.67 the script will break the amount down to the minimum number of coins (toonies, loonies, quarters, dimes, nickles and pennies) totaling 5.67. the problem is that I can't get rid of $ if entered before the amount on the command line, cos' the shell takes it as the command line argument. I tried using sed to omit $ from the amount, so when I enter $coins $5.67 the out put of sed is: 67 not 5.67 Your help will be greatly appreciated. Bashir |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|