[HPADM] Getting an absolute value



Can't believe google doesn't provide an answer, searched these archives
also!

#a=`expr 2 - 1`
#echo $a
1
#a=`expr 2 - 3`
#echo $a
-1

I want to get the absolute value of the difference. I don't have to use
expr, but
also would prefer something available directly with the Borne shell.

Marco

--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@xxxxxxxxxxxxx
Name: hpux-admin@xxxxxxxxxxxxx Owner: owner-hpux-admin@xxxxxxxxxxxxx

Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only)
http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)



Relevant Pages

  • Re: RAID 1
    ... >> repeated context that also clutters the archives, ... I suppose I should have given up on usenet ... he didn't have google to help sift through the cruft and probably ... It shows parts of your 100 most recent posts with links to the full text ...
    (comp.os.linux.networking)
  • Re: Google Groups Changes?
    ... >Is/was there some information provided that will return Google ... and obfuscated the ever-burgeoning public newsgroup archives ... post-election desperation--given that the liberals no longer ...
    (sci.archaeology)
  • Re: Google Groups Changes?
    ... >Is/was there some information provided that will return Google ... and obfuscated the ever-burgeoning public newsgroup archives ... post-election desperation--given that the liberals no longer ...
    (sci.astro.amateur)
  • Re: Google Groups Changes?
    ... >Is/was there some information provided that will return Google ... and obfuscated the ever-burgeoning public newsgroup archives ... post-election desperation--given that the liberals no longer ...
    (sci.physics)
  • Re: Google Groups Changes?
    ... >Is/was there some information provided that will return Google ... and obfuscated the ever-burgeoning public newsgroup archives ... post-election desperation--given that the liberals no longer ...
    (sci.astro)