![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| probléme de montage de clé usb | jalil smail | Filesystems, Disks and Memory | 2 | 04-19-2008 04:45 AM |
| [ Environment Variable ] Probleme with export JAVA_HOME | marcel_kobain | UNIX for Advanced & Expert Users | 2 | 12-06-2007 05:12 AM |
| Route add probleme | waterboy | IP Networking | 5 | 08-17-2007 08:20 AM |
| Probleme with DVD Writer | mktahar | AIX | 2 | 12-04-2005 12:46 AM |
| Probleme With DVD Writer | mktahar | UNIX for Advanced & Expert Users | 1 | 11-26-2005 07:42 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
let probleme
Hi!
I have a script shell and I must do a calculation: let c=7/4 echo $c => 1 and me I want 1,75 Is it possible to find 1,75 in shell? Thinks!
__________________
AIX 5.2 C@stelior |
| Forum Sponsor | ||
|
|
|
|||
|
I come back with an other question
a=1 c=$(printf "%s\n" 'scale = 2; 7/4' | bc) when i do: if [ $a -eq $c ] it find the same number [ 1 -eq 1 ] And I want compare [ 1 -eq 1.75 ] or [ 1 -eq 1,75 ] Is it possible? thanks
__________________
AIX 5.2 C@stelior |