Re: bitwise shift in shell
- From: Cyrille Lefevre <cyrille.lefevre-news%nospam@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 10:49:11 +0200
fazlin a écrit :
Is there anyway to do bitwise shift operations except using $((...))??
in ksh and bash, like in C language...
* 2 : (( x <<= 1 )) or (( x = x << 1 )) or x=(( $x << 1 ))
/ 2 : (( x >>= 1 )) or (( x = x >> 1 )) or x=(( $x >> 1 ))
Regards, Cordialement,
Cyrille Lefevre.
--
mailto:Cyrille.Lefevre-news%nospam@xxxxxxxxxxxxxxxxxxx
supprimer "%nospam% et ".invalid" pour me repondre.
remove "%nospam" and ".invalid" to answer me.
.
- Prev by Date: Does AIX 5 have "top" command ?
- Next by Date: Re: String search and replace
- Previous by thread: Does AIX 5 have "top" command ?
- Next by thread: Re: bitwise shift in shell
- Index(es):
Relevant Pages
|