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
gbase(1) Scotch user's manual gbase(1)NAME
gbase - sets the base value of a source graph
SYNOPSIS
gbase [options] bval [igfile] [ogfile]
DESCRIPTION
The gbase program allows one to set to bval the base value of a source graph, that is, the starting index used to number its vertices and
edges. The base value can be set to 0 or 1, so that graphs can be easily imported from and/or exported to tools written in C or Fortran.
Scotch can handle graphs irrespective of their base value.
When the proper libraries have been included at compile time, gbase can directly handle compressed graphs, both as input and output. A
stream is treated as compressed whenever its name is postfixed with a compressed file extension, such as in 'brol.grf.bz2' or '-.gz'. The
compression formats which can be supported are the bzip2 format ('.bz2'), the gzip format ('.gz'), and the lzma format ('.lzma', on input
only).
OPTIONS -h Display some help.
-V Display program version and copyright.
EXAMPLE
Set the base of graph 'brol.grf' to 1, and write the modified graph to file 'brol_b1.grf'.
$ gbase 1 brol.grf brol_b1.grf
SEE ALSO gcv(1), gmk_hy(1), gmk_msh(1), gtst(1), gmap(1), gord(1).
Scotch user's manual.
AUTHOR
Francois Pellegrini <francois.pellegrini@labri.fr>
February 14, 2011 gbase(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)