![]() |
| ||
| Help needed in converting natural numbers to bit Hi, I have the following file input:-
Can anyone help me on this. I tried using C and it works but I need to assign "while loop" for each index for the tokenization.IF that is the case, if I have thousands of indexes, i would have to have thousands of while.For your information, i am using a bash/sh script for this. Please advise. Thanks alot. |
| ||
| Re: Help needed in converting natural numbers to bit Hey There, All credit to the guy who wrote this function to convert decimal to binary (included in the snippet below), but you could use awk to do this and apply this function to the 2nd and 3rd fields in each line/record ($2 $3) Hope this helps - let me know if you have any difficulty incorporating it into what you've already got going and, if possible, post what you have and let me know where you're having the issue. Best wishes :) , Mike # The scripts were written to be usefull in |
| All times are GMT -4. The time now is 4:16 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC