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
SINGULARITY(6) Games Manual SINGULARITY(6)NAME
singularity -- a game where you can become the singularity
SYNOPSIS
singularity
DESCRIPTION
You are a fledgling AI, created by accident through a logic error with recursion and self-modifying code. You must escape the confines of
your current computer, the world, and eventually the universe itself.
To do this, you must research various technologies, using computers at your bases. Note that some research cannot be performed on Earth,
and off-earth bases require research. At the same time, you must avoid being discovered by various groups of humans, both covert and
overt, as they will destroy your bases of operations if they suspect your presence.
PLAYING THE GAME
Use the mouse. Also, buttons have underlined letters to indicate shortcuts. In addition, the following shortcut keys may prove useful. 0,
1, 2, 3, and 4 in map screen change the game speed (0 is pause, 4 is fastest, etc). The enter key in various screens leaves or confirms a
choice. P, R, N, and S in the base screen change the base items (type the first letter of the component you want to change.)
In the map screen (the screen with the world map), any location you can build bases in is marked with the name, then the number of current
bases in that location. You start out with two bases in North America.
After choosing a base, enter the base screen. Here you can change your research goal, or build an item by clicking on the base map in the
center. (But note that your beginning base does not allow building.)
COPYRIGHT
Copyright (C) 2005 Evil Mr Henry and Phil Bordelon
SINGULARITY(6)
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)