The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
conversion infyanurag Shell Programming and Scripting 3 06-02-2008 02:04 AM
.xls to .csv conversion neil546 Shell Programming and Scripting 7 07-17-2007 04:55 AM
Hex Conversion insania Shell Programming and Scripting 2 03-20-2007 03:15 PM
String Conversion in awk rohanrege Shell Programming and Scripting 3 02-14-2005 05:05 PM
X.25 to TCP/IP conversion manjunath IP Networking 2 08-20-2002 09:57 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-14-2006
rajan_ka1 rajan_ka1 is offline
Registered User
  
 

Join Date: Sep 2005
Posts: 130
conversion

Dear friends,

i am writing sh shell script

I have a file containing binary data.

like this.

010101010101010101101010101010100001010101010101001.

i want to read some particular bits and convert it into decimal valuse.

example.

1.first i want to read 5 bits and convert it into decimal.
2. next i have to take from 6 bit to 12 bit ie 6 bits in to decimal value.


how it is possible in unix.

please provide code.

thanks in advance.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:07 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0