gbase(1) General Commands Manual gbase(1)NAME
gbase - small numeric base converter
SYNOPSIS
gbase [options]
DESCRIPTION
gbase converts numbers between bases 2 (binary), 8 (octal), 10 (decimal), 16 (hexadecimal).
If you specify a number on the command line (preceded by a switch to describe the base the number is in) the program will display that num-
ber in the four bases on the console and exit.
You can also specify the -s switch which will allow you to enter/display signed numbers. (This allows the use of a - (minus) before a deci-
mal number).
Just running the program without any switches will display the main window. There are four entry boxes, corresponding to each of the four
bases. You can type into any of these boxes and the others will update automagically. The program will ignore any characters that are not
allowed for that particular base. It will only allow a - (minus) at the start of a decimal number, if the signed option is on.
OPTIONS --help Display a short help screen and exit
--version
Print version number and exit
-s Treat the number as a signed value
-d decimal number
Print this decimal number in all bases
-h hex number
Print this hexadecimal number in all bases
-o octal number
Print this octal number in all bases
-b binary number
Print this binary number in all bases
AUTHOR
gbase is Copyright (C) 1999 Damian Kramer, Roger Dunce.
gbase August 2003 gbase(1)
Check Out this Related Man Page
rdmsr(1) General Commands Manual rdmsr(1)NAME
rdmsr - tool for reading CPU machine specific registers (MSR)
SYNOPSIS
rdmsr [options] regno
DESCRIPTION
rdmsr is a tool used for reading a CPU's machine specific registers (MSR).
OPTIONS --help, -h
Print a list of available options
--version, -V
Print current version
--hexadecimal, -x
Display output in hexadecimal (lower case)
--capital-hex, -X
Display output in hexadecimal (upper case)
--decimal, -d
Display output in signed decimal
--unsigned, -u
Display output in unsigned decimal
--octal, -o
Display output in octal
--c-language, -c
Format output as a C language constant
--zero-pad, -0
Output leading zeroes
--zero-pad, -0
Output leading zeroes
--raw, -r
Output raw binary
--processor <#>, -p
Select processor number (default: 0)
--bitfield h:l, -f
Output bits [h:l] only
SEE ALSO wrmsr(1)AUTHOR
rdmsr was written by Transmeta Corporation
This man page was contributed by Andres Salomon <dilinger@debian.org> for the Debian GNU/Linux system (but may be used by others).
Mar 2008 rdmsr(1)
Greetings, and thanks for having such an interesting forum!
I currently have 3 Intel boxes running 2000, and two HP boxes running HP-UX 10.20. I am very inexperienced with the Unix/Linux world. I have several problems, mainly in getting them all networked together. I am constrained to keep a... (3 Replies)
Hello, Gurus,
I have two UNIX boxes sitting on different LAN. I want run a command ( ex: Veritas web console ) on MachineA and let the GUI display on MachineB, because MachineB's IP ( 190.x.x.x ) was created by DHCP and it is on a different LAN with MachineB (10.x.x.x), the GUI couldn't be... (2 Replies)
Hi @all,
I have some SUN boxes running.
Now I'm looking for the tool "top".
Where can I find it?
As I could see it is not installed on sys boxes.
Thanx and regards
daemon (2 Replies)
Hi anyone,
i need to compare two decimal numbers
i thought that it could be do it with if but... :(
So, i'm writing in csh and i really apreciate if anyone can help me
if ( $ppl_kn <= $ppl_wb ) then
echo "############# KNdiscount model has the lowest perplexity"
set... (5 Replies)
Hello all:
I have a couple of boxes located in New York, both running SunOS 5.6. I, unfortunately, am located in Pittsburgh and do not have console access to these boxes. A co-worker was attempting to build a user account in one of these boxes, and mistakenly did a: chown username *
... (5 Replies)
I have a file that evidently has some special characters in it. Is there a Unix command that I can use tp display the file so I can see the octal or hex values? (2 Replies)
Hello Experts,,
I m facing a problem as follows.. need help..
When I am giving the below command it gives me three digit hexadecimal number , for ex :-
printf("%0.3x", 10);
Output: 00a
But I want the same for signed number also.
Now when I am specifiying the... (10 Replies)
Hello...
I am new to unix and I am wondering if in a C-shell script , Are we supposed to use only whole numbers........ for example..if a program needs to calculate the average of some numbers........
@ avg = (($1 +$2 + $3)/3)) is returning a whole number.........How can a decimal be... (7 Replies)
Hello all
I started computer science and C++ programming only 6 weeks ago with no prior knowledge. It's a great language, the only other one apart from English that I hope to speak fluently quite soon. I look forward to participating further on these forums, seeking answers and looking at previous... (3 Replies)
I have a file that looks like this:
Infile.seq
I want to output the DNA sequence and add the filename as the identifier. The output file should look like this:
I am using the following code but I do not understand why the sequence is not in the output:
awk 'BEGIN { RS =... (11 Replies)
Hi everyone!
Easy question for everyone. I'm trying to run a command line to find an exact match of a decimal number within a file. The number can be a positive OR negative number. For instance, if I want to find only the number -1 in the file that has:
-17.6
-17
-16.3
-16.2
-15.7
-15.3... (6 Replies)
I found this block of C code to create combinations of A, T, C & G characters (DNA bases). Can anybody explain this code for me, especially with 1ULL<< and ?
16 for (x = 0; x < 1ULL << (2 * k); ++x)
17 {
18 for (i = 0, y = x; i < k; ++i, y >>= 2)
19 putchar ("ACGT");
20 }... (3 Replies)
Hi,
I want to convert two hexadecimal numbers to decimal using unix command line.
1cce446295197a9d6352f9f223a9b698
fc8f99ac06e88c4faf669cf366f60d
I tried using
`echo "ibase=16; $no |bc`
printf '%x\n' "1cce446295197a9d6352f9f223a9b698"
but it doesn't work for such big number it... (4 Replies)
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)