Sponsored Content
Top Forums Shell Programming and Scripting unix script for converting a decimal to binary Post 87020 by zazzybob on Wednesday 19th of October 2005 09:13:44 AM
Old 10-19-2005
Is this homework??

man bc

Cheers
ZB
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting a decimal into integer

Hi all, I'm trying to convert a decimal number into an integer number; I'm doing this: n=`echo |awk '{ print "'"$mem"'"*10}'` where the variable mem is equal to 3.7 I'd like to obtain 37, but the expression above gives me 30. Help please!!!! thx a lot (4 Replies)
Discussion started by: idro
4 Replies

2. UNIX for Advanced & Expert Users

Converting Binary decimal coded values to Ascii Values

Hi All, Is there any command which can convert binary decimal coded values to ascii values... i have bcd values like below оооооооооооо0о-- -v - Pls suggest a way to convert this. Thanks, Deepti.Gaur (3 Replies)
Discussion started by: gaur.deepti
3 Replies

3. Shell Programming and Scripting

converting decimal in other systems with bc

Hallo, how can I convert number systems with bc? I need to convert a decimal number to octal, dual or hex number... (2 Replies)
Discussion started by: wiseguy
2 Replies

4. Shell Programming and Scripting

Converting decimal to integer

The shell mentioned below will show a warning if the page takes more than 6 seconds to load. The problem is that myduration variable is not an integer. How do I convert it to integer? myduration=$(curl http://192.168.50.1/mantisbt/view.php?id=1 -w %{time_total}) > /dev/null ; ] && echo... (3 Replies)
Discussion started by: shantanuo
3 Replies

5. UNIX for Dummies Questions & Answers

Decimal to BCD (Binary Coded Decimal)

Anybody please help me... Design an algorithm that accepts an input a decimal number and converts it into BCD (Binary Coded Decimal) representation. Also, draw its Flow Chart. This is a unix qn... plz post algorithm for that :confused: (1 Reply)
Discussion started by: caramba
1 Replies

6. Homework & Coursework Questions

Decimal to BCD (Binary Coded Decimal)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Design an algorithm that accepts an input a decimal number and converts it into BCD (Binary... (2 Replies)
Discussion started by: caramba
2 Replies

7. Shell Programming and Scripting

Converting decimal to hex

How to convert decimal value to hex and than take 1st digits as variable sample data 84844294,5,6 51291736,2,3 84844294,5,6 51291736,2,3 i can use {printf "%x,%d\n",$1,$2} but than i want to filter base on 1st hex digit 1st recrd (1 Reply)
Discussion started by: before4
1 Replies

8. Shell Programming and Scripting

How to get the negate of decimal to binary?

Hi All, New to this forum (and yes , a newbie in programming..:p) I have a decimal to binary converter script done this way : i=$1 bit0=$(( (i & 0x01) > 0 )) bit1=$(( (i & 0x02) > 0 )) bit2=$(( (i & 0x04) > 0 )) bit3=$(( (i & 0x08) > 0 )) bit4=$((... (6 Replies)
Discussion started by: digiteltlc
6 Replies

9. Programming

Binary to decimal for particular bits

Hello, I have script which work fine on particular data.file . The next feature I want to achieve is to get the decimal equivalent of data to data. The data looks like this : data(01000000000000000000110000000000) thank you.. #include <iostream> #include <fstream> #include... (4 Replies)
Discussion started by: emily
4 Replies

10. UNIX for Beginners Questions & Answers

Negative decimal to binary

Is there a fast way to convert a negative decimal value into a signed binary number in bash script ? I've looked a lot on internet but I saw nothing... (For exemple : -1 become 11111111.) (9 Replies)
Discussion started by: Zedki
9 Replies
SCOLASYNC(1)						       scolasync User Manual						      SCOLASYNC(1)

NAME
scolasync - a file manager dedicated to dealing with a collection of removable media, like music mobile players. It makes easier to copy files to a set of removable media, and to copy files from them. SYNOPSIS
scolasync [{-c | --check}] DESCRIPTION
scolasync allows you to send a series of files towards a set of removable media. Every individual removable storage device is identified, for example to its owner. Then, later, you can retreive modified files from the same collection of removable media and track the modifications attributable to each owner. A possible usage is with students learning a foreign language: they are given homework on their USB sticks, and they bring them back with modified contents to get scores. OPTIONS
-c , --check Enables checkboxes to select a subset of the usb storage media currently plugged to your computer, even if the checkboxes are not wanted in the preferences of the application. FILES
${HOME}/.scolasync/db A database containing the preferences of the application, and the mapping between owners and USB storage media. /usr/share/scolasync/marques.py A dictionary of pecularities which come with some brands of USB storage media. ${HOME}/.scolasync/marques.py This dictionary overrides the settings in the system-wide configuration. ${HOME}/.scolasync/scolasync.log A log file for the application. AUTHOR
Georges Khaznadar <georgesk@ofset.org> Wrote this manpage for the Debian system. COPYRIGHT
Copyright (C) 2010 Georges Khaznadar This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. scolasync 06/23/2012 SCOLASYNC(1)
All times are GMT -4. The time now is 12:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy