Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gbase(1) [debian man page]

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)
Man Page

15 More Discussions You Might Find Interesting

1. HP-UX

HP-UX boxes - am I mad?

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)
Discussion started by: Menace
3 Replies

2. UNIX for Advanced & Expert Users

DISPLAY from another LAN

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)
Discussion started by: b5fnpct
2 Replies

3. Solaris

Tool top

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)
Discussion started by: daemon
2 Replies

4. Shell Programming and Scripting

compare decimal numbers

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)
Discussion started by: tmxps
5 Replies

5. UNIX for Advanced & Expert Users

/etc ownership was changed via chown

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)
Discussion started by: cdunavent
5 Replies

6. Shell Programming and Scripting

Display special characters

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)
Discussion started by: BCarlson
2 Replies

7. Shell Programming and Scripting

printing format for hexadecimal signed number

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)
Discussion started by: user_prady
10 Replies

8. Shell Programming and Scripting

hex to decimal

hi all, echo "ibase=16;obase=10;11" | bc shouldn't i get 17? i am getting 11 i am trying to convert 11 (hex) to decimal stuck! JAK (4 Replies)
Discussion started by: jakSun8
4 Replies

9. Shell Programming and Scripting

Regarding decimal numbers

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)
Discussion started by: ravindra22
7 Replies

10. Homework & Coursework Questions

Problem with simple octal to decimal code

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)
Discussion started by: qf_woodfox
3 Replies

11. UNIX for Dummies Questions & Answers

Problem with AWK and OFS

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)
Discussion started by: Xterra
11 Replies

12. Shell Programming and Scripting

Matching a decimal number?

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)
Discussion started by: lucshi09
6 Replies

13. Programming

C code 1ULL and bit calculation

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)
Discussion started by: yifangt
3 Replies

14. UNIX for Dummies Questions & Answers

Convert hexa decimal to decimal

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)
Discussion started by: sudhakar T
4 Replies

15. 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