![]() |
|
|
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 |
| Script needed to select and delete lower case and mixed case records | abhilash mn | Shell Programming and Scripting | 1 | 03-17-2008 08:00 AM |
| AWK greater than? | dlam | Shell Programming and Scripting | 6 | 03-10-2008 02:43 AM |
| AWK greater than 200 | insania | Shell Programming and Scripting | 2 | 02-05-2007 03:03 PM |
| Ignore case sensitive in Case Switch | annelisa | Shell Programming and Scripting | 1 | 07-13-2006 05:36 AM |
| lower case to upper case string conversion in shell script | dchalavadi | UNIX for Dummies Questions & Answers | 3 | 05-29-2002 01:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using relational operators in case
Hi ,
I want to do the following: HTML Code:
i=6
case $i in
-lt 10)
echo Period=10
;;
-gt 10 && -lt 15)
echo Period-15
;;
>15 && <20)
echo Period=20
;;
>20 && <30)
echo Period=30
;;
>30 && <60)
echo Period=60
;;
*)
echo Period*
;;
esac
Last edited by sars; 02-18-2007 at 11:33 AM.. Reason: Title not appropriate |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|